<!DOCTYPE html >
<html>
        <head>
          <title>MongoCollectionBase - Casbah Driver - com.mongodb.casbah.MongoCollectionBase</title>
          <meta name="description" content="MongoCollectionBase - Casbah Driver - com.mongodb.casbah.MongoCollectionBase" />
          <meta name="keywords" content="MongoCollectionBase Casbah Driver com.mongodb.casbah.MongoCollectionBase" />
          <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
          
      <link href="../../../lib/template.css" media="screen" type="text/css" rel="stylesheet" />
      <link href="../../../lib/diagrams.css" media="screen" type="text/css" rel="stylesheet" id="diagrams-css" />
      <script type="text/javascript" src="../../../lib/jquery.js" id="jquery-js"></script>
      <script type="text/javascript" src="../../../lib/jquery-ui.js"></script>
      <script type="text/javascript" src="../../../lib/template.js"></script>
      <script type="text/javascript" src="../../../lib/tools.tooltip.js"></script>
      <script type="text/javascript" src="../../../lib/modernizr.custom.js"></script><script type="text/javascript" src="../../../lib/diagrams.js" id="diagrams-js"></script>
      <script type="text/javascript">
         if(top === self) {
            var url = '../../../index.html';
            var hash = 'com.mongodb.casbah.MongoCollectionBase';
            var anchor = window.location.hash;
            var anchor_opt = '';
            if (anchor.length >= 1)
              anchor_opt = '@' + anchor.substring(1);
            window.location.href = url + '#' + hash + anchor_opt;
         }
   	  </script>
    
        </head>
        <body class="type">
      <div id="definition">
        <img alt="Trait" src="../../../lib/trait_big.png" />
        <p id="owner"><a href="../../package.html" class="extype" name="com">com</a>.<a href="../package.html" class="extype" name="com.mongodb">mongodb</a>.<a href="package.html" class="extype" name="com.mongodb.casbah">casbah</a></p>
        <h1>MongoCollectionBase</h1><h3><span class="morelinks"><div>Related Doc:
            <a href="package.html" class="extype" name="com.mongodb.casbah">package casbah</a>
          </div></span></h3><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      </div>

      <h4 id="signature" class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">trait</span>
      </span>
      <span class="symbol">
        <span class="name">MongoCollectionBase</span><span class="result"> extends <a href="commons/Logging.html" class="extype" name="com.mongodb.casbah.commons.Logging">Logging</a></span>
      </span>
      </h4>
      
          <div id="comment" class="fullcommenttop"><div class="comment cmt"><p>Scala wrapper for Mongo DBCollections,
including ones which return custom DBObject subclasses
via setObjectClass and the like.
Provides any non-parameterized methods and the basic structure.
Requires an underlying object of a DBCollection.</p><p>This is a rewrite of the Casbah 1.0 approach which was rather
naive and unecessarily complex.... formerly was MongoCollectionWrapper
</p></div><dl class="attributes block"> <dt>Self Type</dt><dd><a href="" class="extype" name="com.mongodb.casbah.MongoCollectionBase">MongoCollectionBase</a></dd><dt>Version</dt><dd><p>2.0, 12/23/10</p></dd><dt>Since</dt><dd><p>1.0</p></dd></dl><div class="toggleContainer block">
          <span class="toggle">Linear Supertypes</span>
          <div class="superTypes hiddenContent"><a href="commons/Logging.html" class="extype" name="com.mongodb.casbah.commons.Logging">Logging</a>, <span class="extype" name="scala.AnyRef">AnyRef</span>, <span class="extype" name="scala.Any">Any</span></div>
        </div><div class="toggleContainer block">
            <span class="toggle">Known Subclasses</span>
            <div class="subClasses hiddenContent"><a href="MongoCollection.html" class="extype" name="com.mongodb.casbah.MongoCollection">MongoCollection</a>, <a href="MongoGenericTypedCollection.html" class="extype" name="com.mongodb.casbah.MongoGenericTypedCollection">MongoGenericTypedCollection</a>, <a href="MongoTypedCollection.html" class="extype" name="com.mongodb.casbah.MongoTypedCollection">MongoTypedCollection</a></div>
          </div><div class="toggleContainer block diagram-container" id="inheritance-diagram-container">
                <span class="toggle diagram-link">Type Hierarchy</span>
                <a href="http://docs.scala-lang.org/overviews/scaladoc/usage.html#diagrams" target="_blank" class="diagram-help">Learn more about scaladoc diagrams</a>
                <div class="diagram" id="inheritance-diagram"><svg class="class-diagram" id="graph1" viewBox="0.00 0.00 289.50 155.00" height="155pt" width="290pt" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg"><g transform="scale(1 1) rotate(0) translate(4 151)" class="graph" id="graph0"><polygon points="-4,4 -4,-151 285.5,-151 285.5,4 -4,4" stroke="none" fill="white"></polygon><g class="cluster" id="clust1"></g><g class="cluster" id="clust2"></g><!-- node0 --><g class="node this trait" id="graph1_0"><g id="a_this trait|graph1_0"><a xlink:title="com.mongodb.casbah.MongoCollectionBase (this trait)" xlink:href="#inheritance-diagram"><polygon points="204.5,-86 63.5,-86 63.5,-61 204.5,-61 204.5,-86" stroke="#37657d" fill="#498aad"></polygon><image xlink:href="../../../lib/trait_diagram.png" y="-80.5" x="74" preserveAspectRatio="xMinYMin meet" height="15px" width="15px"></image><text fill="#ffffff" font-size="10.00" font-family="Arial" y="-70.7495" x="94.9707" text-anchor="start">MongoCollectionBase</text></a></g></g><!-- node1 --><g class="node class" id="graph1_1"><g id="a_class|graph1_1"><a xlink:title="com.mongodb.casbah.MongoCollection" xlink:href="MongoCollection.html#inheritance-diagram"><polygon points="118,-25 0,-25 0,-0 118,-0 118,-25" stroke="#115f3b" fill="#0a955b"></polygon><image xlink:href="../../../lib/class_diagram.png" y="-19.5" x="10" preserveAspectRatio="xMinYMin meet" height="15px" width="15px"></image><text fill="#ffffff" font-size="10.00" font-family="Arial" y="-9.74951" x="30.8672" text-anchor="start">MongoCollection</text></a></g></g><!-- node0&#45;&gt;node1 --><g class="edge inheritance" id="graph1_0_1"><g id="a_inheritance|graph1_0_1"><a xlink:title="MongoCollection is a subtype of MongoCollectionBase"><path d="M115.004,-57.5567C102.214,-47.4951 85.5916,-34.4187 73.7868,-25.1323" stroke="#d4d4d4" fill="none"></path><polygon points="114.171,-59.1275 119.182,-60.8435 116.335,-56.3766 114.171,-59.1275" stroke="#d4d4d4" fill="none"></polygon></a></g></g><!-- node2 --><g class="node trait" id="graph1_2"><g id="a_trait|graph1_2"><a xlink:title="com.mongodb.casbah.MongoTypedCollection" xlink:href="MongoTypedCollection.html#inheritance-diagram"><polygon points="281.5,-25 136.5,-25 136.5,-0 281.5,-0 281.5,-25" stroke="#37657d" fill="#498aad"></polygon><image xlink:href="../../../lib/trait_diagram.png" y="-19.5" x="147" preserveAspectRatio="xMinYMin meet" height="15px" width="15px"></image><text fill="#ffffff" font-size="10.00" font-family="Arial" y="-9.74951" x="167.747" text-anchor="start">MongoTypedCollection</text></a></g></g><!-- node0&#45;&gt;node2 --><g class="edge inheritance" id="graph1_0_2"><g id="a_inheritance|graph1_0_2"><a xlink:title="MongoTypedCollection is a subtype of MongoCollectionBase"><path d="M152.996,-57.5567C165.786,-47.4951 182.408,-34.4187 194.213,-25.1323" stroke="#d4d4d4" fill="none"></path><polygon points="151.665,-56.3766 148.818,-60.8435 153.829,-59.1275 151.665,-56.3766" stroke="#d4d4d4" fill="none"></polygon></a></g></g><!-- node3 --><g class="node trait" id="graph1_3"><g id="a_trait|graph1_3"><a xlink:title="com.mongodb.casbah.commons.Logging" xlink:href="commons/Logging.html#inheritance-diagram"><polygon points="173.5,-147 94.5,-147 94.5,-122 173.5,-122 173.5,-147" stroke="#37657d" fill="#498aad"></polygon><image xlink:href="../../../lib/trait_diagram.png" y="-141.5" x="105" preserveAspectRatio="xMinYMin meet" height="15px" width="15px"></image><text fill="#ffffff" font-size="10.00" font-family="Arial" y="-131.75" x="125.815" text-anchor="start">Logging</text></a></g></g><!-- node3&#45;&gt;node0 --><g class="edge inheritance" id="graph1_3_0"><g id="a_inheritance|graph1_3_0"><a xlink:title="MongoCollectionBase is a subtype of Logging"><path d="M134,-116.687C134,-106.917 134,-94.8534 134,-86.1323" stroke="#d4d4d4" fill="none"></path><polygon points="132.25,-116.843 134,-121.843 135.75,-116.844 132.25,-116.843" stroke="#d4d4d4" fill="none"></polygon></a></g></g></g></svg></div>
              </div></div>
        

      <div id="mbrsel">
        <div id="textfilter"><span class="pre"></span><span class="input"><input id="mbrsel-input" type="text" accesskey="/" /></span><span class="post"></span></div>
        <div id="order">
              <span class="filtertype">Ordering</span>
              <ol>
                
                <li class="alpha in"><span>Alphabetic</span></li>
                <li class="inherit out"><span>By inheritance</span></li>
              </ol>
            </div>
        <div id="ancestors">
                <span class="filtertype">Inherited<br />
                </span>
                <ol id="linearization">
                  <li class="in" name="com.mongodb.casbah.MongoCollectionBase"><span>MongoCollectionBase</span></li><li class="in" name="com.mongodb.casbah.commons.Logging"><span>Logging</span></li><li class="in" name="scala.AnyRef"><span>AnyRef</span></li><li class="in" name="scala.Any"><span>Any</span></li>
                </ol>
              </div><div id="ancestors">
            <span class="filtertype"></span>
            <ol>
              <li class="hideall out"><span>Hide All</span></li>
              <li class="showall in"><span>Show all</span></li>
            </ol>
          </div>
        <div id="visbl">
            <span class="filtertype">Visibility</span>
            <ol><li class="public in"><span>Public</span></li><li class="all out"><span>All</span></li></ol>
          </div>
      </div>

      <div id="template">
        <div id="allMembers">
        

        <div id="types" class="types members">
              <h3>Type Members</h3>
              <ol><li name="com.mongodb.casbah.MongoCollectionBase.CursorType" visbl="pub" data-isabs="true" fullComment="no" group="Ungrouped">
      <a id="CursorType"></a>
      <a id="CursorType:CursorType"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier">abstract </span>
        <span class="kind">type</span>
      </span>
      <span class="symbol">
        <span class="name">CursorType</span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@CursorType" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      
    </li><li name="com.mongodb.casbah.MongoCollectionBase.T" visbl="pub" data-isabs="true" fullComment="no" group="Ungrouped">
      <a id="T&lt;:com.mongodb.casbah.commons.TypeImports.DBObject"></a>
      <a id="T:T"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier">abstract </span>
        <span class="kind">type</span>
      </span>
      <span class="symbol">
        <span class="name">T</span><span class="result"> &lt;: <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@T&lt;:com.mongodb.casbah.commons.TypeImports.DBObject" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      
    </li></ol>
            </div>

        <div id="values" class="values members">
              <h3>Abstract Value Members</h3>
              <ol><li name="com.mongodb.casbah.MongoCollectionBase#_newCursor" visbl="pub" data-isabs="true" fullComment="yes" group="Ungrouped">
      <a id="_newCursor(cursor:com.mongodb.DBCursor):MongoCollectionBase.this.CursorType"></a>
      <a id="_newCursor(DBCursor):CursorType"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier">abstract </span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">_newCursor</span><span class="params">(<span name="cursor">cursor: <span class="extype" name="com.mongodb.DBCursor">DBCursor</span></span>)</span><span class="result">: <a href="#CursorType" class="extmbr" name="com.mongodb.casbah.MongoCollectionBase.CursorType">CursorType</a></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@_newCursor(cursor:com.mongodb.DBCursor):MongoCollectionBase.this.CursorType" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">_newCursor</p><div class="fullcomment"><div class="comment cmt"><p>_newCursor</p><p>Utility method which concrete subclasses
are expected to implement for creating a new
instance of the correct cursor implementation from a
Java cursor.  Good with cursor calls that return a new cursor.
Should figure out the right type to return based on typing setup.
</p></div><dl class="paramcmts block"><dt class="param">cursor</dt><dd class="cmt"><p>(DBCursor)</p></dd><dt>returns</dt><dd class="cmt"><p>(MongoCursorBase)</p></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#_newInstance" visbl="pub" data-isabs="true" fullComment="yes" group="Ungrouped">
      <a id="_newInstance(collection:com.mongodb.DBCollection):com.mongodb.casbah.MongoCollectionBase"></a>
      <a id="_newInstance(DBCollection):MongoCollectionBase"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier">abstract </span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">_newInstance</span><span class="params">(<span name="collection">collection: <span class="extype" name="com.mongodb.DBCollection">DBCollection</span></span>)</span><span class="result">: <a href="" class="extype" name="com.mongodb.casbah.MongoCollectionBase">MongoCollectionBase</a></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@_newInstance(collection:com.mongodb.DBCollection):com.mongodb.casbah.MongoCollectionBase" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">_newInstance</p><div class="fullcomment"><div class="comment cmt"><p>_newInstance</p><p>Utility method which concrete subclasses
are expected to implement for creating a new
instance of THIS concrete implementation from a
Java collection.  Good with calls that return a new collection.
</p></div><dl class="paramcmts block"><dt class="param">collection</dt><dd class="cmt"><p>(DBCollection)</p></dd><dt>returns</dt><dd class="cmt"><p>(this.type)</p></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#underlying" visbl="pub" data-isabs="true" fullComment="no" group="Ungrouped">
      <a id="underlying:com.mongodb.DBCollection"></a>
      <a id="underlying:DBCollection"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier">abstract </span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">underlying</span><span class="result">: <span class="extype" name="com.mongodb.DBCollection">DBCollection</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@underlying:com.mongodb.DBCollection" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">The underlying Java Mongo Driver Collection object we proxy.</p>
    </li></ol>
            </div>

        <div id="values" class="values members">
              <h3>Concrete Value Members</h3>
              <ol><li name="scala.AnyRef#!=" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="!=(x$1:Any):Boolean"></a>
      <a id="!=(Any):Boolean"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier">final </span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span title="gt4s: $bang$eq" class="name">!=</span><span class="params">(<span name="arg0">arg0: <span class="extype" name="scala.Any">Any</span></span>)</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@!=(x$1:Any):Boolean" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div>
    </li><li name="scala.AnyRef###" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="##():Int"></a>
      <a id="##():Int"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier">final </span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span title="gt4s: $hash$hash" class="name">##</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Int">Int</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@##():Int" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#+=" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="+=[A](x:A)(implicitevidence$65:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):com.mongodb.casbah.TypeImports.WriteResult"></a>
      <a id="+=[A](A)((A)⇒commons.TypeImports.DBObject):TypeImports.WriteResult"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span title="gt4s: $plus$eq" class="name">+=</span><span class="tparams">[<span name="A">A</span>]</span><span class="params">(<span name="x">x: <span class="extype" name="com.mongodb.casbah.MongoCollectionBase.+=.A">A</span></span>)</span><span class="params">(<span class="implicit">implicit </span><span name="arg0">arg0: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.+=.A">A</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>)</span><span class="result">: <a href="TypeImports$.html#WriteResult=com.mongodb.WriteResult" class="extmbr" name="com.mongodb.casbah.TypeImports.WriteResult">TypeImports.WriteResult</a></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@+=[A](x:A)(implicitevidence$65:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):com.mongodb.casbah.TypeImports.WriteResult" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Save an object to the Collection
</p><div class="fullcomment"><div class="comment cmt"><p>Save an object to the Collection
</p></div><dl class="paramcmts block"><dt class="param">x</dt><dd class="cmt"><p>object to save to the collection</p></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#-=" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="-=[A](x:A)(implicitevidence$66:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):com.mongodb.casbah.TypeImports.WriteResult"></a>
      <a id="-=[A](A)((A)⇒commons.TypeImports.DBObject):TypeImports.WriteResult"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span title="gt4s: $minus$eq" class="name">-=</span><span class="tparams">[<span name="A">A</span>]</span><span class="params">(<span name="x">x: <span class="extype" name="com.mongodb.casbah.MongoCollectionBase.-=.A">A</span></span>)</span><span class="params">(<span class="implicit">implicit </span><span name="arg0">arg0: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.-=.A">A</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>)</span><span class="result">: <a href="TypeImports$.html#WriteResult=com.mongodb.WriteResult" class="extmbr" name="com.mongodb.casbah.TypeImports.WriteResult">TypeImports.WriteResult</a></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@-=[A](x:A)(implicitevidence$66:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):com.mongodb.casbah.TypeImports.WriteResult" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Remove a matching object from the collection
</p><div class="fullcomment"><div class="comment cmt"><p>Remove a matching object from the collection
</p></div><dl class="paramcmts block"><dt class="param">x</dt><dd class="cmt"><p>object to remove from the collection</p></dd></dl></div>
    </li><li name="scala.AnyRef#==" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="==(x$1:Any):Boolean"></a>
      <a id="==(Any):Boolean"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier">final </span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span title="gt4s: $eq$eq" class="name">==</span><span class="params">(<span name="arg0">arg0: <span class="extype" name="scala.Any">Any</span></span>)</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@==(x$1:Any):Boolean" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#_typedValue" visbl="prt" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="_typedValue(dbObj:com.mongodb.casbah.commons.TypeImports.DBObject):Option[MongoCollectionBase.this.T]"></a>
      <a id="_typedValue(commons.TypeImports.DBObject):Option[T]"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">_typedValue</span><span class="params">(<span name="dbObj">dbObj: <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>)</span><span class="result">: <span class="extype" name="scala.Option">Option</span>[<a href="#T&lt;:com.mongodb.casbah.commons.TypeImports.DBObject" class="extmbr" name="com.mongodb.casbah.MongoCollectionBase.T">T</a>]</span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@_typedValue(dbObj:com.mongodb.casbah.commons.TypeImports.DBObject):Option[MongoCollectionBase.this.T]" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>protected </dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#addOption" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="addOption(option:Int):Unit"></a>
      <a id="addOption(Int):Unit"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">addOption</span><span class="params">(<span name="option">option: <span class="extype" name="scala.Int">Int</span></span>)</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@addOption(option:Int):Unit" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Manipulate Network Options
</p><div class="fullcomment"><div class="comment cmt"><p>Manipulate Network Options
</p></div><dl class="attributes block"> <dt>See also</dt><dd><span class="cmt"><p>com.mongodb.Bytes</p></span><span class="cmt"><p>com.mongodb.Mongo</p></span></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#aggregate" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="aggregate[A](pipeline:Iterable[A],options:com.mongodb.AggregationOptions,readPreference:com.mongodb.ReadPreference)(implicitevidence$57:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):com.mongodb.casbah.Cursor"></a>
      <a id="aggregate[A](Iterable[A],mongodb.AggregationOptions,mongodb.ReadPreference)((A)⇒commons.TypeImports.DBObject):Cursor"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">aggregate</span><span class="tparams">[<span name="A">A</span>]</span><span class="params">(<span name="pipeline">pipeline: <span class="extype" name="scala.Iterable">Iterable</span>[<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.aggregate.A">A</span>]</span>, <span name="options">options: <span class="extype" name="com.mongodb.AggregationOptions">mongodb.AggregationOptions</span></span>, <span name="readPreference">readPreference: <span class="extype" name="com.mongodb.ReadPreference">mongodb.ReadPreference</span></span>)</span><span class="params">(<span class="implicit">implicit </span><span name="arg0">arg0: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.aggregate.A">A</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>)</span><span class="result">: <a href="Cursor.html" class="extype" name="com.mongodb.casbah.Cursor">Cursor</a></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@aggregate[A](pipeline:Iterable[A],options:com.mongodb.AggregationOptions,readPreference:com.mongodb.ReadPreference)(implicitevidence$57:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):com.mongodb.casbah.Cursor" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">performs an aggregation operation
</p><div class="fullcomment"><div class="comment cmt"><p>performs an aggregation operation
</p></div><dl class="paramcmts block"><dt class="param">pipeline</dt><dd class="cmt"><p>the aggregation pipeline</p></dd><dt class="param">options</dt><dd class="cmt"><p>the aggregation options</p></dd><dt class="param">readPreference</dt><dd class="cmt"><p>The readPreference for the aggregation</p></dd><dt>returns</dt><dd class="cmt"><p>The aggregation operation's result set</p></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#aggregate" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="aggregate[A](pipeline:Iterable[A],readPreference:com.mongodb.ReadPreference)(implicitevidence$56:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):com.mongodb.casbah.AggregationOutput"></a>
      <a id="aggregate[A](Iterable[A],mongodb.ReadPreference)((A)⇒commons.TypeImports.DBObject):AggregationOutput"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">aggregate</span><span class="tparams">[<span name="A">A</span>]</span><span class="params">(<span name="pipeline">pipeline: <span class="extype" name="scala.Iterable">Iterable</span>[<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.aggregate.A">A</span>]</span>, <span name="readPreference">readPreference: <span class="extype" name="com.mongodb.ReadPreference">mongodb.ReadPreference</span></span>)</span><span class="params">(<span class="implicit">implicit </span><span name="arg0">arg0: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.aggregate.A">A</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>)</span><span class="result">: <a href="AggregationOutput.html" class="extype" name="com.mongodb.casbah.AggregationOutput">AggregationOutput</a></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@aggregate[A](pipeline:Iterable[A],readPreference:com.mongodb.ReadPreference)(implicitevidence$56:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):com.mongodb.casbah.AggregationOutput" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">performs an aggregation operation
</p><div class="fullcomment"><div class="comment cmt"><p>performs an aggregation operation
</p></div><dl class="paramcmts block"><dt class="param">pipeline</dt><dd class="cmt"><p>the aggregation pipeline</p></dd><dt class="param">readPreference</dt><dd class="cmt"><p>The readPreference for the aggregation</p></dd><dt>returns</dt><dd class="cmt"><p>The aggregation operation's result set</p></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#aggregate" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="aggregate[A](pipeline:Iterable[A],options:com.mongodb.AggregationOptions)(implicitevidence$55:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):com.mongodb.casbah.Cursor"></a>
      <a id="aggregate[A](Iterable[A],mongodb.AggregationOptions)((A)⇒commons.TypeImports.DBObject):Cursor"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">aggregate</span><span class="tparams">[<span name="A">A</span>]</span><span class="params">(<span name="pipeline">pipeline: <span class="extype" name="scala.Iterable">Iterable</span>[<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.aggregate.A">A</span>]</span>, <span name="options">options: <span class="extype" name="com.mongodb.AggregationOptions">mongodb.AggregationOptions</span></span>)</span><span class="params">(<span class="implicit">implicit </span><span name="arg0">arg0: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.aggregate.A">A</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>)</span><span class="result">: <a href="Cursor.html" class="extype" name="com.mongodb.casbah.Cursor">Cursor</a></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@aggregate[A](pipeline:Iterable[A],options:com.mongodb.AggregationOptions)(implicitevidence$55:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):com.mongodb.casbah.Cursor" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">performs an aggregation operation
</p><div class="fullcomment"><div class="comment cmt"><p>performs an aggregation operation
</p></div><dl class="paramcmts block"><dt class="param">pipeline</dt><dd class="cmt"><p>the aggregation pipeline</p></dd><dt class="param">options</dt><dd class="cmt"><p>the aggregation options</p></dd><dt>returns</dt><dd class="cmt"><p>The aggregation operation's result set</p></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#aggregate" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="aggregate[A](pipeline:Iterable[A])(implicitevidence$54:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):com.mongodb.casbah.AggregationOutput"></a>
      <a id="aggregate[A](Iterable[A])((A)⇒commons.TypeImports.DBObject):AggregationOutput"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">aggregate</span><span class="tparams">[<span name="A">A</span>]</span><span class="params">(<span name="pipeline">pipeline: <span class="extype" name="scala.Iterable">Iterable</span>[<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.aggregate.A">A</span>]</span>)</span><span class="params">(<span class="implicit">implicit </span><span name="arg0">arg0: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.aggregate.A">A</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>)</span><span class="result">: <a href="AggregationOutput.html" class="extype" name="com.mongodb.casbah.AggregationOutput">AggregationOutput</a></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@aggregate[A](pipeline:Iterable[A])(implicitevidence$54:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):com.mongodb.casbah.AggregationOutput" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">performs an aggregation operation
</p><div class="fullcomment"><div class="comment cmt"><p>performs an aggregation operation
</p></div><dl class="paramcmts block"><dt class="param">pipeline</dt><dd class="cmt"><p>the aggregation pipeline</p></dd><dt>returns</dt><dd class="cmt"><p>The aggregation operation's result set</p></dd></dl></div>
    </li><li name="scala.Any#asInstanceOf" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="asInstanceOf[T0]:T0"></a>
      <a id="asInstanceOf[T0]:T0"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier">final </span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">asInstanceOf</span><span class="tparams">[<span name="T0">T0</span>]</span><span class="result">: <span class="extype" name="scala.Any.asInstanceOf.T0">T0</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@asInstanceOf[T0]:T0" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>Any</dd></dl></div>
    </li><li name="scala.AnyRef#clone" visbl="prt" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="clone():Object"></a>
      <a id="clone():AnyRef"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">clone</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.AnyRef">AnyRef</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@clone():Object" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>protected[<a href="../../../java$lang.html" class="extype" name="java.lang">java.lang</a>] </dd><dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
                <span class="name">@throws</span><span class="args">(<span>
      
      <span class="defval" name="classOf[java.lang.CloneNotSupportedException]">...</span>
    </span>)</span>
              
        </dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#collection" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="collection(n:String):com.mongodb.casbah.MongoCollection"></a>
      <a id="collection(String):MongoCollection"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">collection</span><span class="params">(<span name="n">n: <span class="extype" name="scala.Predef.String">String</span></span>)</span><span class="result">: <a href="MongoCollection.html" class="extype" name="com.mongodb.casbah.MongoCollection">MongoCollection</a></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@collection(n:String):com.mongodb.casbah.MongoCollection" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Find a collection that is prefixed with this collection's name.</p><div class="fullcomment"><div class="comment cmt"><p>Find a collection that is prefixed with this collection's name.
A typical use of this might be
<blockquote>
<pre>
DBCollection users = mongo.getCollection( "wiki" ).getCollection( "users" );
</pre>
</blockquote>
Which is equilalent to
<pre>
<blockquote>
DBCollection users = mongo.getCollection( "wiki.users" );
</pre>
</blockquote></p></div><dl class="paramcmts block"><dt class="param">n</dt><dd class="cmt"><p>the name of the collection to find</p></dd><dt>returns</dt><dd class="cmt"><p>the matching collection
        TODO - Make this support type construction</p></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#count" visbl="pub" data-isabs="false" fullComment="no" group="Ungrouped">
      <a id="count[A,B](query:A,fields:B,limit:Long,skip:Long,readPrefs:com.mongodb.ReadPreference,maxTime:scala.concurrent.duration.Duration)(implicitevidence$63:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitevidence$64:B=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):Int"></a>
      <a id="count[A,B](A,B,Long,Long,mongodb.ReadPreference,Duration)((A)⇒commons.TypeImports.DBObject,(B)⇒commons.TypeImports.DBObject):Int"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">count</span><span class="tparams">[<span name="A">A</span>, <span name="B">B</span>]</span><span class="params">(<span name="query">query: <span class="extype" name="com.mongodb.casbah.MongoCollectionBase.count.A">A</span> = <span class="symbol"><span class="name"><a href="../../package.html">MongoDBObject.empty</a></span></span></span>, <span name="fields">fields: <span class="extype" name="com.mongodb.casbah.MongoCollectionBase.count.B">B</span> = <span class="symbol"><span class="name"><a href="../../package.html">MongoDBObject.empty</a></span></span></span>, <span name="limit">limit: <span class="extype" name="scala.Long">Long</span> = <span class="symbol">0</span></span>, <span name="skip">skip: <span class="extype" name="scala.Long">Long</span> = <span class="symbol">0</span></span>, <span name="readPrefs">readPrefs: <span class="extype" name="com.mongodb.ReadPreference">mongodb.ReadPreference</span> = <span class="symbol"><span class="name"><a href="#getReadPreference:com.mongodb.ReadPreference">getReadPreference</a></span></span></span>, <span name="maxTime">maxTime: <span class="extype" name="scala.concurrent.duration.Duration">Duration</span> = <span class="symbol">Duration(0, MILLISECONDS)</span></span>)</span><span class="params">(<span class="implicit">implicit </span><span name="arg0">arg0: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.count.A">A</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>, <span name="arg1">arg1: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.count.B">B</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>)</span><span class="result">: <span class="extype" name="scala.Int">Int</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@count[A,B](query:A,fields:B,limit:Long,skip:Long,readPrefs:com.mongodb.ReadPreference,maxTime:scala.concurrent.duration.Duration)(implicitevidence$63:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitevidence$64:B=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):Int" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      
    </li><li name="com.mongodb.casbah.MongoCollectionBase#createIndex" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="createIndex[A](keys:A,name:String,unique:Boolean)(implicitevidence$5:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):Unit"></a>
      <a id="createIndex[A](A,String,Boolean)((A)⇒commons.TypeImports.DBObject):Unit"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">createIndex</span><span class="tparams">[<span name="A">A</span>]</span><span class="params">(<span name="keys">keys: <span class="extype" name="com.mongodb.casbah.MongoCollectionBase.createIndex.A">A</span></span>, <span name="name">name: <span class="extype" name="scala.Predef.String">String</span></span>, <span name="unique">unique: <span class="extype" name="scala.Boolean">Boolean</span></span>)</span><span class="params">(<span class="implicit">implicit </span><span name="arg0">arg0: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.createIndex.A">A</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>)</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@createIndex[A](keys:A,name:String,unique:Boolean)(implicitevidence$5:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):Unit" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Forces creation of an index on a set of fields, if one does not already exist.</p><div class="fullcomment"><div class="comment cmt"><p>Forces creation of an index on a set of fields, if one does not already exist.
</p></div><dl class="paramcmts block"><dt class="param">keys</dt><dd class="cmt"><p>a document that contains pairs with the name of the field or fields to index and order of the index</p></dd><dt class="param">name</dt><dd class="cmt"><p>an identifier for the index. If null or empty, the default name will be used.</p></dd><dt class="param">unique</dt><dd class="cmt"><p>if the index should be unique</p></dd></dl><dl class="attributes block"> <dt>Exceptions thrown</dt><dd><span class="cmt"><p><span class="extype" name="MongoException"><code>MongoException</code></span> if the operation failed</p></span></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#createIndex" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="createIndex[A](keys:A,name:String)(implicitevidence$4:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):Unit"></a>
      <a id="createIndex[A](A,String)((A)⇒commons.TypeImports.DBObject):Unit"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">createIndex</span><span class="tparams">[<span name="A">A</span>]</span><span class="params">(<span name="keys">keys: <span class="extype" name="com.mongodb.casbah.MongoCollectionBase.createIndex.A">A</span></span>, <span name="name">name: <span class="extype" name="scala.Predef.String">String</span></span>)</span><span class="params">(<span class="implicit">implicit </span><span name="arg0">arg0: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.createIndex.A">A</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>)</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@createIndex[A](keys:A,name:String)(implicitevidence$4:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):Unit" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Forces creation of an index on a set of fields, if one does not already exist.</p><div class="fullcomment"><div class="comment cmt"><p>Forces creation of an index on a set of fields, if one does not already exist.
</p></div><dl class="paramcmts block"><dt class="param">keys</dt><dd class="cmt"><p>a document that contains pairs with the name of the field or fields to index and order of the index</p></dd><dt class="param">name</dt><dd class="cmt"><p>an identifier for the index. If null or empty, the default name will be used.</p></dd></dl><dl class="attributes block"> <dt>Exceptions thrown</dt><dd><span class="cmt"><p><span class="extype" name="MongoException"><code>MongoException</code></span> if the operation failed</p></span></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#createIndex" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="createIndex(name:String):Unit"></a>
      <a id="createIndex(String):Unit"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">createIndex</span><span class="params">(<span name="name">name: <span class="extype" name="scala.Predef.String">String</span></span>)</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@createIndex(name:String):Unit" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Forces creation of an ascending index on a field with the default options.</p><div class="fullcomment"><div class="comment cmt"><p>Forces creation of an ascending index on a field with the default options.
</p></div><dl class="paramcmts block"><dt class="param">name</dt><dd class="cmt"><p>name of field to index on</p></dd></dl><dl class="attributes block"> <dt>Exceptions thrown</dt><dd><span class="cmt"><p><span class="extype" name="MongoException"><code>MongoException</code></span> if the operation failed</p></span></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#createIndex" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="createIndex[A,B](keys:A,options:B)(implicitevidence$2:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitevidence$3:B=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):Unit"></a>
      <a id="createIndex[A,B](A,B)((A)⇒commons.TypeImports.DBObject,(B)⇒commons.TypeImports.DBObject):Unit"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">createIndex</span><span class="tparams">[<span name="A">A</span>, <span name="B">B</span>]</span><span class="params">(<span name="keys">keys: <span class="extype" name="com.mongodb.casbah.MongoCollectionBase.createIndex.A">A</span></span>, <span name="options">options: <span class="extype" name="com.mongodb.casbah.MongoCollectionBase.createIndex.B">B</span></span>)</span><span class="params">(<span class="implicit">implicit </span><span name="arg0">arg0: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.createIndex.A">A</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>, <span name="arg1">arg1: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.createIndex.B">B</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>)</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@createIndex[A,B](keys:A,options:B)(implicitevidence$2:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitevidence$3:B=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):Unit" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Creates an index on the field specified, if that index does not already exist.</p><div class="fullcomment"><div class="comment cmt"><p>Creates an index on the field specified, if that index does not already exist.
</p></div><dl class="paramcmts block"><dt class="param">keys</dt><dd class="cmt"><p>a document that contains pairs with the name of the field or fields to index and order of the index</p></dd><dt class="param">options</dt><dd class="cmt"><p>a document that controls the creation of the index.</p></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#createIndex" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="createIndex[A](keys:A)(implicitevidence$1:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):Unit"></a>
      <a id="createIndex[A](A)((A)⇒commons.TypeImports.DBObject):Unit"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">createIndex</span><span class="tparams">[<span name="A">A</span>]</span><span class="params">(<span name="keys">keys: <span class="extype" name="com.mongodb.casbah.MongoCollectionBase.createIndex.A">A</span></span>)</span><span class="params">(<span class="implicit">implicit </span><span name="arg0">arg0: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.createIndex.A">A</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>)</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@createIndex[A](keys:A)(implicitevidence$1:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):Unit" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Forces creation of an index on a set of fields, if one does not already exist.</p><div class="fullcomment"><div class="comment cmt"><p>Forces creation of an index on a set of fields, if one does not already exist.</p></div><dl class="paramcmts block"><dt class="param">keys</dt><dd class="cmt"><p>an object with a key set of the fields desired for the index</p></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#customDecoderFactory" visbl="pub" data-isabs="false" fullComment="no" group="Ungrouped">
      <a id="customDecoderFactory:Option[com.mongodb.DBDecoderFactory]"></a>
      <a id="customDecoderFactory:Option[DBDecoderFactory]"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">customDecoderFactory</span><span class="result">: <span class="extype" name="scala.Option">Option</span>[<span class="extype" name="com.mongodb.DBDecoderFactory">DBDecoderFactory</span>]</span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@customDecoderFactory:Option[com.mongodb.DBDecoderFactory]" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      
    </li><li name="com.mongodb.casbah.MongoCollectionBase#customEncoderFactory" visbl="pub" data-isabs="false" fullComment="no" group="Ungrouped">
      <a id="customEncoderFactory:Option[com.mongodb.DBEncoderFactory]"></a>
      <a id="customEncoderFactory:Option[DBEncoderFactory]"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">customEncoderFactory</span><span class="result">: <span class="extype" name="scala.Option">Option</span>[<span class="extype" name="com.mongodb.DBEncoderFactory">DBEncoderFactory</span>]</span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@customEncoderFactory:Option[com.mongodb.DBEncoderFactory]" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      
    </li><li name="com.mongodb.casbah.MongoCollectionBase#db" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="db:com.mongodb.casbah.MongoDB"></a>
      <a id="db:MongoDB"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier">implicit </span>
        <span class="kind">val</span>
      </span>
      <span class="symbol">
        <span class="name">db</span><span class="result">: <a href="MongoDB.html" class="extype" name="com.mongodb.casbah.MongoDB">MongoDB</a></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@db:com.mongodb.casbah.MongoDB" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Returns the database this collection is a member of.</p><div class="fullcomment"><div class="comment cmt"><p>Returns the database this collection is a member of.</p></div><dl class="paramcmts block"><dt>returns</dt><dd class="cmt"><p>this collection's database</p></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#distinct" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="distinct[A](key:String,query:A,readPrefs:com.mongodb.ReadPreference)(implicitevidence$6:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):scala.collection.mutable.Buffer[_]"></a>
      <a id="distinct[A](String,A,mongodb.ReadPreference)((A)⇒commons.TypeImports.DBObject):Buffer[_]"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">distinct</span><span class="tparams">[<span name="A">A</span>]</span><span class="params">(<span name="key">key: <span class="extype" name="scala.Predef.String">String</span></span>, <span name="query">query: <span class="extype" name="com.mongodb.casbah.MongoCollectionBase.distinct.A">A</span> = <span class="symbol"><span class="name"><a href="../../package.html">MongoDBObject.empty</a></span></span></span>, <span name="readPrefs">readPrefs: <span class="extype" name="com.mongodb.ReadPreference">mongodb.ReadPreference</span> = <span class="symbol"><span class="name"><a href="#getReadPreference:com.mongodb.ReadPreference">getReadPreference</a></span></span></span>)</span><span class="params">(<span class="implicit">implicit </span><span name="arg0">arg0: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.distinct.A">A</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>)</span><span class="result">: <span class="extype" name="scala.collection.mutable.Buffer">Buffer</span>[_]</span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@distinct[A](key:String,query:A,readPrefs:com.mongodb.ReadPreference)(implicitevidence$6:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):scala.collection.mutable.Buffer[_]" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Find distinct values for a key
</p><div class="fullcomment"><div class="comment cmt"><p>Find distinct values for a key
</p></div><dl class="paramcmts block"><dt class="tparam">A</dt><dd class="cmt"><p>The DBObject type</p></dd><dt class="param">key</dt><dd class="cmt"><p>the key to find the distinct values for</p></dd><dt class="param">query</dt><dd class="cmt"><p>the query (optional)</p></dd><dt class="param">readPrefs</dt><dd class="cmt"><p>the <span class="extype" name="com.mongodb.ReadPreference">com.mongodb.ReadPreference</span> for the operation.</p></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#drop" visbl="pub" data-isabs="false" fullComment="no" group="Ungrouped">
      <a id="drop():Unit"></a>
      <a id="drop():Unit"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">drop</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@drop():Unit" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Drops (deletes) this collection
</p>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#dropCollection" visbl="pub" data-isabs="false" fullComment="no" group="Ungrouped">
      <a id="dropCollection():Unit"></a>
      <a id="dropCollection():Unit"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">dropCollection</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@dropCollection():Unit" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Drops (deletes) this collection
</p>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#dropIndex" visbl="pub" data-isabs="false" fullComment="no" group="Ungrouped">
      <a id="dropIndex(name:String):Unit"></a>
      <a id="dropIndex(String):Unit"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">dropIndex</span><span class="params">(<span name="name">name: <span class="extype" name="scala.Predef.String">String</span></span>)</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@dropIndex(name:String):Unit" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      
    </li><li name="com.mongodb.casbah.MongoCollectionBase#dropIndex" visbl="pub" data-isabs="false" fullComment="no" group="Ungrouped">
      <a id="dropIndex[A](keys:A)(implicitevidence$7:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):Unit"></a>
      <a id="dropIndex[A](A)((A)⇒commons.TypeImports.DBObject):Unit"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">dropIndex</span><span class="tparams">[<span name="A">A</span>]</span><span class="params">(<span name="keys">keys: <span class="extype" name="com.mongodb.casbah.MongoCollectionBase.dropIndex.A">A</span></span>)</span><span class="params">(<span class="implicit">implicit </span><span name="arg0">arg0: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.dropIndex.A">A</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>)</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@dropIndex[A](keys:A)(implicitevidence$7:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):Unit" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      
    </li><li name="com.mongodb.casbah.MongoCollectionBase#dropIndexes" visbl="pub" data-isabs="false" fullComment="no" group="Ungrouped">
      <a id="dropIndexes(name:String):Unit"></a>
      <a id="dropIndexes(String):Unit"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">dropIndexes</span><span class="params">(<span name="name">name: <span class="extype" name="scala.Predef.String">String</span></span>)</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@dropIndexes(name:String):Unit" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      
    </li><li name="com.mongodb.casbah.MongoCollectionBase#dropIndexes" visbl="pub" data-isabs="false" fullComment="no" group="Ungrouped">
      <a id="dropIndexes():Unit"></a>
      <a id="dropIndexes():Unit"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">dropIndexes</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@dropIndexes():Unit" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Drops all indices from this collection
</p>
    </li><li name="scala.AnyRef#eq" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="eq(x$1:AnyRef):Boolean"></a>
      <a id="eq(AnyRef):Boolean"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier">final </span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">eq</span><span class="params">(<span name="arg0">arg0: <span class="extype" name="scala.AnyRef">AnyRef</span></span>)</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@eq(x$1:AnyRef):Boolean" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#equals" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="equals(obj:Any):Boolean"></a>
      <a id="equals(Any):Boolean"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">equals</span><span class="params">(<span name="obj">obj: <span class="extype" name="scala.Any">Any</span></span>)</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@equals(obj:Any):Boolean" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Checks if this collection is equal to another object.</p><div class="fullcomment"><div class="comment cmt"><p>Checks if this collection is equal to another object.</p></div><dl class="paramcmts block"><dt class="param">obj</dt><dd class="cmt"><p>object with which to compare this collection</p></dd><dt>returns</dt><dd class="cmt"><p>if the two collections are the same object</p></dd></dl><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="" class="extype" name="com.mongodb.casbah.MongoCollectionBase">MongoCollectionBase</a> → AnyRef → Any</dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#explainAggregate" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="explainAggregate[A](pipeline:Iterable[A],options:com.mongodb.AggregationOptions)(implicitevidence$58:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):scala.collection.mutable.Map[String,AnyRef]"></a>
      <a id="explainAggregate[A](Iterable[A],mongodb.AggregationOptions)((A)⇒commons.TypeImports.DBObject):Map[String,AnyRef]"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">explainAggregate</span><span class="tparams">[<span name="A">A</span>]</span><span class="params">(<span name="pipeline">pipeline: <span class="extype" name="scala.Iterable">Iterable</span>[<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.explainAggregate.A">A</span>]</span>, <span name="options">options: <span class="extype" name="com.mongodb.AggregationOptions">mongodb.AggregationOptions</span></span>)</span><span class="params">(<span class="implicit">implicit </span><span name="arg0">arg0: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.explainAggregate.A">A</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>)</span><span class="result">: <span class="extype" name="scala.collection.mutable.Map">Map</span>[<span class="extype" name="scala.Predef.String">String</span>, <span class="extype" name="scala.AnyRef">AnyRef</span>]</span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@explainAggregate[A](pipeline:Iterable[A],options:com.mongodb.AggregationOptions)(implicitevidence$58:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):scala.collection.mutable.Map[String,AnyRef]" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Return the explain plan for the aggregation pipeline.</p><div class="fullcomment"><div class="comment cmt"><p>Return the explain plan for the aggregation pipeline.
</p></div><dl class="paramcmts block"><dt class="param">pipeline</dt><dd class="cmt"><p>the aggregation pipeline to explain</p></dd><dt class="param">options</dt><dd class="cmt"><p>the options to apply to the aggregation</p></dd><dt>returns</dt><dd class="cmt"><p>the command result.  The explain output may change from release to
        release, so best to simply log this.</p></dd></dl></div>
    </li><li name="scala.AnyRef#finalize" visbl="prt" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="finalize():Unit"></a>
      <a id="finalize():Unit"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">finalize</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@finalize():Unit" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>protected[<a href="../../../java$lang.html" class="extype" name="java.lang">java.lang</a>] </dd><dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
                <span class="name">@throws</span><span class="args">(<span>
      
      <span class="symbol">classOf[java.lang.Throwable]</span>
    </span>)</span>
              
        </dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#find" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="find[A,B](ref:A,keys:B)(implicitevidence$9:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitevidence$10:B=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):MongoCollectionBase.this.CursorType"></a>
      <a id="find[A,B](A,B)((A)⇒commons.TypeImports.DBObject,(B)⇒commons.TypeImports.DBObject):CursorType"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">find</span><span class="tparams">[<span name="A">A</span>, <span name="B">B</span>]</span><span class="params">(<span name="ref">ref: <span class="extype" name="com.mongodb.casbah.MongoCollectionBase.find.A">A</span></span>, <span name="keys">keys: <span class="extype" name="com.mongodb.casbah.MongoCollectionBase.find.B">B</span></span>)</span><span class="params">(<span class="implicit">implicit </span><span name="arg0">arg0: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.find.A">A</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>, <span name="arg1">arg1: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.find.B">B</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>)</span><span class="result">: <a href="#CursorType" class="extmbr" name="com.mongodb.casbah.MongoCollectionBase.CursorType">CursorType</a></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@find[A,B](ref:A,keys:B)(implicitevidence$9:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitevidence$10:B=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):MongoCollectionBase.this.CursorType" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Queries for an object in this collection.</p><div class="fullcomment"><div class="comment cmt"><p>Queries for an object in this collection.</p><p>An empty DBObject will match every document in the collection.
Regardless of fields specified, the _id fields are always returned.</p><p>An example that returns the &quot;x&quot; and &quot;_id&quot; fields for every document
in the collection that has an &quot;x&quot; field:</p><p><blockquote>
<pre>
BasicDBObject keys = new BasicDBObject();
keys.put("x", 1);

DBCursor cursor = collection.find(new BasicDBObject(), keys);
</pre>
</blockquote>
</p></div><dl class="paramcmts block"><dt class="param">ref</dt><dd class="cmt"><p>object for which to search</p></dd><dt class="param">keys</dt><dd class="cmt"><p>fields to return</p></dd><dt>returns</dt><dd class="cmt"><p>a cursor to iterate over results</p></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#find" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="find[A](ref:A)(implicitevidence$8:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):MongoCollectionBase.this.CursorType"></a>
      <a id="find[A](A)((A)⇒commons.TypeImports.DBObject):CursorType"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">find</span><span class="tparams">[<span name="A">A</span>]</span><span class="params">(<span name="ref">ref: <span class="extype" name="com.mongodb.casbah.MongoCollectionBase.find.A">A</span></span>)</span><span class="params">(<span class="implicit">implicit </span><span name="arg0">arg0: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.find.A">A</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>)</span><span class="result">: <a href="#CursorType" class="extmbr" name="com.mongodb.casbah.MongoCollectionBase.CursorType">CursorType</a></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@find[A](ref:A)(implicitevidence$8:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):MongoCollectionBase.this.CursorType" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Queries for an object in this collection.</p><div class="fullcomment"><div class="comment cmt"><p>Queries for an object in this collection.</p></div><dl class="paramcmts block"><dt class="param">ref</dt><dd class="cmt"><p>object for which to search</p></dd><dt>returns</dt><dd class="cmt"><p>an iterator over the results</p></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#find" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="find():MongoCollectionBase.this.CursorType"></a>
      <a id="find():CursorType"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">find</span><span class="params">()</span><span class="result">: <a href="#CursorType" class="extmbr" name="com.mongodb.casbah.MongoCollectionBase.CursorType">CursorType</a></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@find():MongoCollectionBase.this.CursorType" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Queries for all objects in this collection.</p><div class="fullcomment"><div class="comment cmt"><p>Queries for all objects in this collection.</p></div><dl class="paramcmts block"><dt>returns</dt><dd class="cmt"><p>a cursor which will iterate over every object</p></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#findAndModify" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="findAndModify[A,B,C,D](query:A,fields:B,sort:C,remove:Boolean,update:D,returnNew:Boolean,upsert:Boolean,bypassDocumentValidation:Boolean,maxTime:scala.concurrent.duration.Duration,writeConcern:com.mongodb.WriteConcern)(implicitevidence$42:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitevidence$43:B=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitevidence$44:C=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitevidence$45:D=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):Option[MongoCollectionBase.this.T]"></a>
      <a id="findAndModify[A,B,C,D](A,B,C,Boolean,D,Boolean,Boolean,Boolean,Duration,mongodb.WriteConcern)((A)⇒commons.TypeImports.DBObject,(B)⇒commons.TypeImports.DBObject,(C)⇒commons.TypeImports.DBObject,(D)⇒commons.TypeImports.DBObject):Option[T]"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">findAndModify</span><span class="tparams">[<span name="A">A</span>, <span name="B">B</span>, <span name="C">C</span>, <span name="D">D</span>]</span><span class="params">(<span name="query">query: <span class="extype" name="com.mongodb.casbah.MongoCollectionBase.findAndModify.A">A</span></span>, <span name="fields">fields: <span class="extype" name="com.mongodb.casbah.MongoCollectionBase.findAndModify.B">B</span></span>, <span name="sort">sort: <span class="extype" name="com.mongodb.casbah.MongoCollectionBase.findAndModify.C">C</span></span>, <span name="remove">remove: <span class="extype" name="scala.Boolean">Boolean</span></span>, <span name="update">update: <span class="extype" name="com.mongodb.casbah.MongoCollectionBase.findAndModify.D">D</span></span>, <span name="returnNew">returnNew: <span class="extype" name="scala.Boolean">Boolean</span></span>, <span name="upsert">upsert: <span class="extype" name="scala.Boolean">Boolean</span></span>, <span name="bypassDocumentValidation">bypassDocumentValidation: <span class="extype" name="scala.Boolean">Boolean</span></span>, <span name="maxTime">maxTime: <span class="extype" name="scala.concurrent.duration.Duration">Duration</span></span>, <span name="writeConcern">writeConcern: <span class="extype" name="com.mongodb.WriteConcern">mongodb.WriteConcern</span></span>)</span><span class="params">(<span class="implicit">implicit </span><span name="arg0">arg0: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.findAndModify.A">A</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>, <span name="arg1">arg1: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.findAndModify.B">B</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>, <span name="arg2">arg2: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.findAndModify.C">C</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>, <span name="arg3">arg3: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.findAndModify.D">D</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>)</span><span class="result">: <span class="extype" name="scala.Option">Option</span>[<a href="#T&lt;:com.mongodb.casbah.commons.TypeImports.DBObject" class="extmbr" name="com.mongodb.casbah.MongoCollectionBase.T">T</a>]</span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@findAndModify[A,B,C,D](query:A,fields:B,sort:C,remove:Boolean,update:D,returnNew:Boolean,upsert:Boolean,bypassDocumentValidation:Boolean,maxTime:scala.concurrent.duration.Duration,writeConcern:com.mongodb.WriteConcern)(implicitevidence$42:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitevidence$43:B=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitevidence$44:C=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitevidence$45:D=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):Option[MongoCollectionBase.this.T]" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Finds the first document in the query and updates it.</p><div class="fullcomment"><div class="comment cmt"><p>Finds the first document in the query and updates it.
</p></div><dl class="paramcmts block"><dt class="param">query</dt><dd class="cmt"><p>query to match</p></dd><dt class="param">fields</dt><dd class="cmt"><p>fields to be returned</p></dd><dt class="param">sort</dt><dd class="cmt"><p>sort to apply before picking first document</p></dd><dt class="param">remove</dt><dd class="cmt"><p>if true, document found will be removed</p></dd><dt class="param">update</dt><dd class="cmt"><p>update to apply</p></dd><dt class="param">returnNew</dt><dd class="cmt"><p>if true, the updated document is returned, otherwise the old document is returned (or it would be lost forever)</p></dd><dt class="param">upsert</dt><dd class="cmt"><p>do upsert (insert if document not present)</p></dd><dt class="param">bypassDocumentValidation</dt><dd class="cmt"><p>whether to bypass document validation.</p></dd><dt class="param">maxTime</dt><dd class="cmt"><p>the maximum duration that the server will allow this operation to execute before killing it</p></dd><dt class="param">writeConcern</dt><dd class="cmt"><p>the write concern to apply to this operation</p></dd></dl><dl class="attributes block"> <dt>Since</dt><dd><p>3.1.0</p></dd><dt>Exceptions thrown</dt><dd><span class="cmt"><p><span class="extype" name="MongoException"><code>MongoException</code></span> if the operation failed for some other reason</p></span><span class="cmt"><p><span class="extype" name="WriteConcernException"><code>WriteConcernException</code></span> if the write failed due some other failure specific to the update command</p></span></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#findAndModify" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="findAndModify[A,B,C,D](query:A,fields:B,sort:C,remove:Boolean,update:D,returnNew:Boolean,upsert:Boolean,bypassDocumentValidation:Boolean,maxTime:scala.concurrent.duration.Duration)(implicitevidence$38:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitevidence$39:B=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitevidence$40:C=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitevidence$41:D=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):Option[MongoCollectionBase.this.T]"></a>
      <a id="findAndModify[A,B,C,D](A,B,C,Boolean,D,Boolean,Boolean,Boolean,Duration)((A)⇒commons.TypeImports.DBObject,(B)⇒commons.TypeImports.DBObject,(C)⇒commons.TypeImports.DBObject,(D)⇒commons.TypeImports.DBObject):Option[T]"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">findAndModify</span><span class="tparams">[<span name="A">A</span>, <span name="B">B</span>, <span name="C">C</span>, <span name="D">D</span>]</span><span class="params">(<span name="query">query: <span class="extype" name="com.mongodb.casbah.MongoCollectionBase.findAndModify.A">A</span></span>, <span name="fields">fields: <span class="extype" name="com.mongodb.casbah.MongoCollectionBase.findAndModify.B">B</span></span>, <span name="sort">sort: <span class="extype" name="com.mongodb.casbah.MongoCollectionBase.findAndModify.C">C</span></span>, <span name="remove">remove: <span class="extype" name="scala.Boolean">Boolean</span></span>, <span name="update">update: <span class="extype" name="com.mongodb.casbah.MongoCollectionBase.findAndModify.D">D</span></span>, <span name="returnNew">returnNew: <span class="extype" name="scala.Boolean">Boolean</span></span>, <span name="upsert">upsert: <span class="extype" name="scala.Boolean">Boolean</span></span>, <span name="bypassDocumentValidation">bypassDocumentValidation: <span class="extype" name="scala.Boolean">Boolean</span></span>, <span name="maxTime">maxTime: <span class="extype" name="scala.concurrent.duration.Duration">Duration</span></span>)</span><span class="params">(<span class="implicit">implicit </span><span name="arg0">arg0: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.findAndModify.A">A</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>, <span name="arg1">arg1: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.findAndModify.B">B</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>, <span name="arg2">arg2: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.findAndModify.C">C</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>, <span name="arg3">arg3: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.findAndModify.D">D</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>)</span><span class="result">: <span class="extype" name="scala.Option">Option</span>[<a href="#T&lt;:com.mongodb.casbah.commons.TypeImports.DBObject" class="extmbr" name="com.mongodb.casbah.MongoCollectionBase.T">T</a>]</span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@findAndModify[A,B,C,D](query:A,fields:B,sort:C,remove:Boolean,update:D,returnNew:Boolean,upsert:Boolean,bypassDocumentValidation:Boolean,maxTime:scala.concurrent.duration.Duration)(implicitevidence$38:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitevidence$39:B=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitevidence$40:C=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitevidence$41:D=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):Option[MongoCollectionBase.this.T]" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Finds the first document in the query and updates it.</p><div class="fullcomment"><div class="comment cmt"><p>Finds the first document in the query and updates it.
</p></div><dl class="paramcmts block"><dt class="param">query</dt><dd class="cmt"><p>query to match</p></dd><dt class="param">fields</dt><dd class="cmt"><p>fields to be returned</p></dd><dt class="param">sort</dt><dd class="cmt"><p>sort to apply before picking first document</p></dd><dt class="param">remove</dt><dd class="cmt"><p>if true, document found will be removed</p></dd><dt class="param">update</dt><dd class="cmt"><p>update to apply</p></dd><dt class="param">returnNew</dt><dd class="cmt"><p>if true, the updated document is returned, otherwise the old document is returned (or it would be lost forever)</p></dd><dt class="param">upsert</dt><dd class="cmt"><p>do upsert (insert if document not present)</p></dd><dt class="param">bypassDocumentValidation</dt><dd class="cmt"><p>whether to bypass document validation.</p></dd><dt class="param">maxTime</dt><dd class="cmt"><p>the maximum duration that the server will allow this operation to execute before killing it</p></dd></dl><dl class="attributes block"> <dt>Since</dt><dd><p>3.1.0</p></dd><dt>Exceptions thrown</dt><dd><span class="cmt"><p><span class="extype" name="MongoException"><code>MongoException</code></span> if the operation failed for some other reason</p></span><span class="cmt"><p><span class="extype" name="WriteConcernException"><code>WriteConcernException</code></span> if the write failed due some other failure specific to the update command</p></span></dd><dt>Note</dt><dd><span class="cmt"><p>bypassDocumentValidation requires MongoDB 3.2 or greater</p></span></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#findAndModify" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="findAndModify[A,B,C,D](query:A,fields:B,sort:C,remove:Boolean,update:D,returnNew:Boolean,upsert:Boolean,maxTime:scala.concurrent.duration.Duration,writeConcern:com.mongodb.WriteConcern)(implicitevidence$34:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitevidence$35:B=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitevidence$36:C=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitevidence$37:D=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):Option[MongoCollectionBase.this.T]"></a>
      <a id="findAndModify[A,B,C,D](A,B,C,Boolean,D,Boolean,Boolean,Duration,mongodb.WriteConcern)((A)⇒commons.TypeImports.DBObject,(B)⇒commons.TypeImports.DBObject,(C)⇒commons.TypeImports.DBObject,(D)⇒commons.TypeImports.DBObject):Option[T]"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">findAndModify</span><span class="tparams">[<span name="A">A</span>, <span name="B">B</span>, <span name="C">C</span>, <span name="D">D</span>]</span><span class="params">(<span name="query">query: <span class="extype" name="com.mongodb.casbah.MongoCollectionBase.findAndModify.A">A</span></span>, <span name="fields">fields: <span class="extype" name="com.mongodb.casbah.MongoCollectionBase.findAndModify.B">B</span></span>, <span name="sort">sort: <span class="extype" name="com.mongodb.casbah.MongoCollectionBase.findAndModify.C">C</span></span>, <span name="remove">remove: <span class="extype" name="scala.Boolean">Boolean</span></span>, <span name="update">update: <span class="extype" name="com.mongodb.casbah.MongoCollectionBase.findAndModify.D">D</span></span>, <span name="returnNew">returnNew: <span class="extype" name="scala.Boolean">Boolean</span></span>, <span name="upsert">upsert: <span class="extype" name="scala.Boolean">Boolean</span></span>, <span name="maxTime">maxTime: <span class="extype" name="scala.concurrent.duration.Duration">Duration</span></span>, <span name="writeConcern">writeConcern: <span class="extype" name="com.mongodb.WriteConcern">mongodb.WriteConcern</span></span>)</span><span class="params">(<span class="implicit">implicit </span><span name="arg0">arg0: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.findAndModify.A">A</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>, <span name="arg1">arg1: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.findAndModify.B">B</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>, <span name="arg2">arg2: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.findAndModify.C">C</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>, <span name="arg3">arg3: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.findAndModify.D">D</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>)</span><span class="result">: <span class="extype" name="scala.Option">Option</span>[<a href="#T&lt;:com.mongodb.casbah.commons.TypeImports.DBObject" class="extmbr" name="com.mongodb.casbah.MongoCollectionBase.T">T</a>]</span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@findAndModify[A,B,C,D](query:A,fields:B,sort:C,remove:Boolean,update:D,returnNew:Boolean,upsert:Boolean,maxTime:scala.concurrent.duration.Duration,writeConcern:com.mongodb.WriteConcern)(implicitevidence$34:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitevidence$35:B=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitevidence$36:C=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitevidence$37:D=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):Option[MongoCollectionBase.this.T]" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Finds the first document in the query and updates it.</p><div class="fullcomment"><div class="comment cmt"><p>Finds the first document in the query and updates it.
</p></div><dl class="paramcmts block"><dt class="param">query</dt><dd class="cmt"><p>query to match</p></dd><dt class="param">fields</dt><dd class="cmt"><p>fields to be returned</p></dd><dt class="param">sort</dt><dd class="cmt"><p>sort to apply before picking first document</p></dd><dt class="param">remove</dt><dd class="cmt"><p>if true, document found will be removed</p></dd><dt class="param">update</dt><dd class="cmt"><p>update to apply</p></dd><dt class="param">returnNew</dt><dd class="cmt"><p>if true, the updated document is returned, otherwise the old document is returned (or it would be lost forever)</p></dd><dt class="param">upsert</dt><dd class="cmt"><p>do upsert (insert if document not present)</p></dd><dt class="param">maxTime</dt><dd class="cmt"><p>the maximum duration that the server will allow this operation to execute before killing it</p></dd><dt class="param">writeConcern</dt><dd class="cmt"><p>the write concern to apply to this operation</p></dd></dl><dl class="attributes block"> <dt>Since</dt><dd><p>3.1.0</p></dd><dt>Exceptions thrown</dt><dd><span class="cmt"><p><span class="extype" name="MongoException"><code>MongoException</code></span> if the operation failed for some other reason</p></span><span class="cmt"><p><span class="extype" name="WriteConcernException"><code>WriteConcernException</code></span> if the write failed due some other failure specific to the update command</p></span></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#findAndModify" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="findAndModify[A,B,C,D](query:A,fields:B,sort:C,remove:Boolean,update:D,returnNew:Boolean,upsert:Boolean,maxTime:scala.concurrent.duration.Duration)(implicitevidence$30:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitevidence$31:B=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitevidence$32:C=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitevidence$33:D=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):Option[MongoCollectionBase.this.T]"></a>
      <a id="findAndModify[A,B,C,D](A,B,C,Boolean,D,Boolean,Boolean,Duration)((A)⇒commons.TypeImports.DBObject,(B)⇒commons.TypeImports.DBObject,(C)⇒commons.TypeImports.DBObject,(D)⇒commons.TypeImports.DBObject):Option[T]"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">findAndModify</span><span class="tparams">[<span name="A">A</span>, <span name="B">B</span>, <span name="C">C</span>, <span name="D">D</span>]</span><span class="params">(<span name="query">query: <span class="extype" name="com.mongodb.casbah.MongoCollectionBase.findAndModify.A">A</span></span>, <span name="fields">fields: <span class="extype" name="com.mongodb.casbah.MongoCollectionBase.findAndModify.B">B</span></span>, <span name="sort">sort: <span class="extype" name="com.mongodb.casbah.MongoCollectionBase.findAndModify.C">C</span></span>, <span name="remove">remove: <span class="extype" name="scala.Boolean">Boolean</span></span>, <span name="update">update: <span class="extype" name="com.mongodb.casbah.MongoCollectionBase.findAndModify.D">D</span></span>, <span name="returnNew">returnNew: <span class="extype" name="scala.Boolean">Boolean</span></span>, <span name="upsert">upsert: <span class="extype" name="scala.Boolean">Boolean</span></span>, <span name="maxTime">maxTime: <span class="extype" name="scala.concurrent.duration.Duration">Duration</span></span>)</span><span class="params">(<span class="implicit">implicit </span><span name="arg0">arg0: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.findAndModify.A">A</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>, <span name="arg1">arg1: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.findAndModify.B">B</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>, <span name="arg2">arg2: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.findAndModify.C">C</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>, <span name="arg3">arg3: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.findAndModify.D">D</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>)</span><span class="result">: <span class="extype" name="scala.Option">Option</span>[<a href="#T&lt;:com.mongodb.casbah.commons.TypeImports.DBObject" class="extmbr" name="com.mongodb.casbah.MongoCollectionBase.T">T</a>]</span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@findAndModify[A,B,C,D](query:A,fields:B,sort:C,remove:Boolean,update:D,returnNew:Boolean,upsert:Boolean,maxTime:scala.concurrent.duration.Duration)(implicitevidence$30:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitevidence$31:B=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitevidence$32:C=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitevidence$33:D=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):Option[MongoCollectionBase.this.T]" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Finds the first document in the query and updates it.</p><div class="fullcomment"><div class="comment cmt"><p>Finds the first document in the query and updates it.
</p></div><dl class="paramcmts block"><dt class="param">query</dt><dd class="cmt"><p>query to match</p></dd><dt class="param">fields</dt><dd class="cmt"><p>fields to be returned</p></dd><dt class="param">sort</dt><dd class="cmt"><p>sort to apply before picking first document</p></dd><dt class="param">remove</dt><dd class="cmt"><p>if true, document found will be removed</p></dd><dt class="param">update</dt><dd class="cmt"><p>update to apply</p></dd><dt class="param">returnNew</dt><dd class="cmt"><p>if true, the updated document is returned, otherwise the old document is returned (or it would be lost forever)</p></dd><dt class="param">upsert</dt><dd class="cmt"><p>do upsert (insert if document not present)</p></dd><dt class="param">maxTime</dt><dd class="cmt"><p>the maximum duration that the server will allow this operation to execute before killing it</p></dd><dt>returns</dt><dd class="cmt"><p>the document as it was before the modifications, unless <code>returnNew</code> is true, in which case it returns the document
        after the changes were made</p></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#findAndModify" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="findAndModify[A,B,C,D](query:A,fields:B,sort:C,remove:Boolean,update:D,returnNew:Boolean,upsert:Boolean,writeConcern:com.mongodb.WriteConcern)(implicitevidence$26:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitevidence$27:B=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitevidence$28:C=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitevidence$29:D=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):Option[MongoCollectionBase.this.T]"></a>
      <a id="findAndModify[A,B,C,D](A,B,C,Boolean,D,Boolean,Boolean,mongodb.WriteConcern)((A)⇒commons.TypeImports.DBObject,(B)⇒commons.TypeImports.DBObject,(C)⇒commons.TypeImports.DBObject,(D)⇒commons.TypeImports.DBObject):Option[T]"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">findAndModify</span><span class="tparams">[<span name="A">A</span>, <span name="B">B</span>, <span name="C">C</span>, <span name="D">D</span>]</span><span class="params">(<span name="query">query: <span class="extype" name="com.mongodb.casbah.MongoCollectionBase.findAndModify.A">A</span></span>, <span name="fields">fields: <span class="extype" name="com.mongodb.casbah.MongoCollectionBase.findAndModify.B">B</span></span>, <span name="sort">sort: <span class="extype" name="com.mongodb.casbah.MongoCollectionBase.findAndModify.C">C</span></span>, <span name="remove">remove: <span class="extype" name="scala.Boolean">Boolean</span></span>, <span name="update">update: <span class="extype" name="com.mongodb.casbah.MongoCollectionBase.findAndModify.D">D</span></span>, <span name="returnNew">returnNew: <span class="extype" name="scala.Boolean">Boolean</span></span>, <span name="upsert">upsert: <span class="extype" name="scala.Boolean">Boolean</span></span>, <span name="writeConcern">writeConcern: <span class="extype" name="com.mongodb.WriteConcern">mongodb.WriteConcern</span></span>)</span><span class="params">(<span class="implicit">implicit </span><span name="arg0">arg0: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.findAndModify.A">A</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>, <span name="arg1">arg1: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.findAndModify.B">B</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>, <span name="arg2">arg2: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.findAndModify.C">C</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>, <span name="arg3">arg3: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.findAndModify.D">D</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>)</span><span class="result">: <span class="extype" name="scala.Option">Option</span>[<a href="#T&lt;:com.mongodb.casbah.commons.TypeImports.DBObject" class="extmbr" name="com.mongodb.casbah.MongoCollectionBase.T">T</a>]</span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@findAndModify[A,B,C,D](query:A,fields:B,sort:C,remove:Boolean,update:D,returnNew:Boolean,upsert:Boolean,writeConcern:com.mongodb.WriteConcern)(implicitevidence$26:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitevidence$27:B=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitevidence$28:C=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitevidence$29:D=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):Option[MongoCollectionBase.this.T]" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Atomically modify and return a single document.</p><div class="fullcomment"><div class="comment cmt"><p>Atomically modify and return a single document. By default, the returned document does not include the modifications made on the
update.
</p></div><dl class="paramcmts block"><dt class="param">query</dt><dd class="cmt"><p>specifies the selection criteria for the modification</p></dd><dt class="param">fields</dt><dd class="cmt"><p>a subset of fields to return</p></dd><dt class="param">sort</dt><dd class="cmt"><p>determines which document the operation will modify if the query selects multiple documents</p></dd><dt class="param">remove</dt><dd class="cmt"><p>when true, removes the selected document</p></dd><dt class="param">update</dt><dd class="cmt"><p>the modifications to apply</p></dd><dt class="param">returnNew</dt><dd class="cmt"><p>when true, returns the modified document rather than the original</p></dd><dt class="param">upsert</dt><dd class="cmt"><p>when true, operation creates a new document if the query returns no documents</p></dd><dt class="param">writeConcern</dt><dd class="cmt"><p>the write concern to apply to this operation</p></dd><dt>returns</dt><dd class="cmt"><p>the document as it was before the modifications, unless <code>returnNew</code> is true, in which case it returns the document
        after the changes were made</p></dd></dl><dl class="attributes block"> <dt>Since</dt><dd><p>3.1.0</p></dd><dt>Exceptions thrown</dt><dd><span class="cmt"><p><span class="extype" name="MongoException"><code>MongoException</code></span> if the operation failed for some other reason</p></span><span class="cmt"><p><span class="extype" name="WriteConcernException"><code>WriteConcernException</code></span> if the write failed due some other failure specific to the update command</p></span></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#findAndModify" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="findAndModify[A,B,C,D](query:A,fields:B,sort:C,remove:Boolean,update:D,returnNew:Boolean,upsert:Boolean)(implicitevidence$22:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitevidence$23:B=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitevidence$24:C=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitevidence$25:D=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):Option[MongoCollectionBase.this.T]"></a>
      <a id="findAndModify[A,B,C,D](A,B,C,Boolean,D,Boolean,Boolean)((A)⇒commons.TypeImports.DBObject,(B)⇒commons.TypeImports.DBObject,(C)⇒commons.TypeImports.DBObject,(D)⇒commons.TypeImports.DBObject):Option[T]"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">findAndModify</span><span class="tparams">[<span name="A">A</span>, <span name="B">B</span>, <span name="C">C</span>, <span name="D">D</span>]</span><span class="params">(<span name="query">query: <span class="extype" name="com.mongodb.casbah.MongoCollectionBase.findAndModify.A">A</span></span>, <span name="fields">fields: <span class="extype" name="com.mongodb.casbah.MongoCollectionBase.findAndModify.B">B</span></span>, <span name="sort">sort: <span class="extype" name="com.mongodb.casbah.MongoCollectionBase.findAndModify.C">C</span></span>, <span name="remove">remove: <span class="extype" name="scala.Boolean">Boolean</span></span>, <span name="update">update: <span class="extype" name="com.mongodb.casbah.MongoCollectionBase.findAndModify.D">D</span></span>, <span name="returnNew">returnNew: <span class="extype" name="scala.Boolean">Boolean</span></span>, <span name="upsert">upsert: <span class="extype" name="scala.Boolean">Boolean</span></span>)</span><span class="params">(<span class="implicit">implicit </span><span name="arg0">arg0: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.findAndModify.A">A</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>, <span name="arg1">arg1: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.findAndModify.B">B</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>, <span name="arg2">arg2: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.findAndModify.C">C</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>, <span name="arg3">arg3: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.findAndModify.D">D</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>)</span><span class="result">: <span class="extype" name="scala.Option">Option</span>[<a href="#T&lt;:com.mongodb.casbah.commons.TypeImports.DBObject" class="extmbr" name="com.mongodb.casbah.MongoCollectionBase.T">T</a>]</span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@findAndModify[A,B,C,D](query:A,fields:B,sort:C,remove:Boolean,update:D,returnNew:Boolean,upsert:Boolean)(implicitevidence$22:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitevidence$23:B=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitevidence$24:C=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitevidence$25:D=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):Option[MongoCollectionBase.this.T]" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Finds the first document in the query and updates it.</p><div class="fullcomment"><div class="comment cmt"><p>Finds the first document in the query and updates it.
</p></div><dl class="paramcmts block"><dt class="param">query</dt><dd class="cmt"><p>query to match</p></dd><dt class="param">fields</dt><dd class="cmt"><p>fields to be returned</p></dd><dt class="param">sort</dt><dd class="cmt"><p>sort to apply before picking first document</p></dd><dt class="param">remove</dt><dd class="cmt"><p>if true, document found will be removed</p></dd><dt class="param">update</dt><dd class="cmt"><p>update to apply</p></dd><dt class="param">returnNew</dt><dd class="cmt"><p>if true, the updated document is returned, otherwise the old document is returned (or it would be lost forever)</p></dd><dt class="param">upsert</dt><dd class="cmt"><p>do upsert (insert if document not present)</p></dd><dt>returns</dt><dd class="cmt"><p>the document as it was before the modifications, unless <code>returnNew</code> is true, in which case it returns the document
        after the changes were made</p></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#findAndModify" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="findAndModify[A,B,C](query:A,sort:B,update:C)(implicitevidence$19:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitevidence$20:B=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitevidence$21:C=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):Option[MongoCollectionBase.this.T]"></a>
      <a id="findAndModify[A,B,C](A,B,C)((A)⇒commons.TypeImports.DBObject,(B)⇒commons.TypeImports.DBObject,(C)⇒commons.TypeImports.DBObject):Option[T]"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">findAndModify</span><span class="tparams">[<span name="A">A</span>, <span name="B">B</span>, <span name="C">C</span>]</span><span class="params">(<span name="query">query: <span class="extype" name="com.mongodb.casbah.MongoCollectionBase.findAndModify.A">A</span></span>, <span name="sort">sort: <span class="extype" name="com.mongodb.casbah.MongoCollectionBase.findAndModify.B">B</span></span>, <span name="update">update: <span class="extype" name="com.mongodb.casbah.MongoCollectionBase.findAndModify.C">C</span></span>)</span><span class="params">(<span class="implicit">implicit </span><span name="arg0">arg0: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.findAndModify.A">A</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>, <span name="arg1">arg1: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.findAndModify.B">B</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>, <span name="arg2">arg2: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.findAndModify.C">C</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>)</span><span class="result">: <span class="extype" name="scala.Option">Option</span>[<a href="#T&lt;:com.mongodb.casbah.commons.TypeImports.DBObject" class="extmbr" name="com.mongodb.casbah.MongoCollectionBase.T">T</a>]</span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@findAndModify[A,B,C](query:A,sort:B,update:C)(implicitevidence$19:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitevidence$20:B=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitevidence$21:C=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):Option[MongoCollectionBase.this.T]" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Finds the first document in the query (sorted) and updates it.</p><div class="fullcomment"><div class="comment cmt"><p>Finds the first document in the query (sorted) and updates it.
</p></div><dl class="paramcmts block"><dt class="param">query</dt><dd class="cmt"><p>query to match</p></dd><dt class="param">sort</dt><dd class="cmt"><p>sort to apply before picking first document</p></dd><dt class="param">update</dt><dd class="cmt"><p>update to apply</p></dd><dt>returns</dt><dd class="cmt"><p>the old document</p></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#findAndModify" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="findAndModify[A,B](query:A,update:B)(implicitevidence$17:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitevidence$18:B=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):Option[MongoCollectionBase.this.T]"></a>
      <a id="findAndModify[A,B](A,B)((A)⇒commons.TypeImports.DBObject,(B)⇒commons.TypeImports.DBObject):Option[T]"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">findAndModify</span><span class="tparams">[<span name="A">A</span>, <span name="B">B</span>]</span><span class="params">(<span name="query">query: <span class="extype" name="com.mongodb.casbah.MongoCollectionBase.findAndModify.A">A</span></span>, <span name="update">update: <span class="extype" name="com.mongodb.casbah.MongoCollectionBase.findAndModify.B">B</span></span>)</span><span class="params">(<span class="implicit">implicit </span><span name="arg0">arg0: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.findAndModify.A">A</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>, <span name="arg1">arg1: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.findAndModify.B">B</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>)</span><span class="result">: <span class="extype" name="scala.Option">Option</span>[<a href="#T&lt;:com.mongodb.casbah.commons.TypeImports.DBObject" class="extmbr" name="com.mongodb.casbah.MongoCollectionBase.T">T</a>]</span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@findAndModify[A,B](query:A,update:B)(implicitevidence$17:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitevidence$18:B=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):Option[MongoCollectionBase.this.T]" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Finds the first document in the query (sorted) and updates it.</p><div class="fullcomment"><div class="comment cmt"><p>Finds the first document in the query (sorted) and updates it.
If remove is specified it will be removed. If new is specified then the updated
document will be returned, otherwise the old document is returned (or it would be lost forever).
You can also specify the fields to return in the document, optionally.
</p></div><dl class="paramcmts block"><dt class="param">query</dt><dd class="cmt"><p>query to match</p></dd><dt class="param">update</dt><dd class="cmt"><p>update to apply</p></dd><dt>returns</dt><dd class="cmt"><p>(Option[T]) of the the found document (before, or after the update)</p></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#findAndRemove" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="findAndRemove[A](query:A)(implicitevidence$46:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):Option[MongoCollectionBase.this.T]"></a>
      <a id="findAndRemove[A](A)((A)⇒commons.TypeImports.DBObject):Option[T]"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">findAndRemove</span><span class="tparams">[<span name="A">A</span>]</span><span class="params">(<span name="query">query: <span class="extype" name="com.mongodb.casbah.MongoCollectionBase.findAndRemove.A">A</span></span>)</span><span class="params">(<span class="implicit">implicit </span><span name="arg0">arg0: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.findAndRemove.A">A</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>)</span><span class="result">: <span class="extype" name="scala.Option">Option</span>[<a href="#T&lt;:com.mongodb.casbah.commons.TypeImports.DBObject" class="extmbr" name="com.mongodb.casbah.MongoCollectionBase.T">T</a>]</span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@findAndRemove[A](query:A)(implicitevidence$46:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):Option[MongoCollectionBase.this.T]" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Finds the first document in the query and removes it.</p><div class="fullcomment"><div class="comment cmt"><p>Finds the first document in the query and removes it.</p></div><dl class="paramcmts block"><dt>returns</dt><dd class="cmt"><p>the removed document</p></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#findOne" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="findOne[A,B,C](o:A,fields:B,orderBy:C,readPrefs:com.mongodb.ReadPreference,maxTime:scala.concurrent.duration.Duration)(implicitevidence$13:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitevidence$14:B=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitevidence$15:C=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):Option[MongoCollectionBase.this.T]"></a>
      <a id="findOne[A,B,C](A,B,C,mongodb.ReadPreference,Duration)((A)⇒commons.TypeImports.DBObject,(B)⇒commons.TypeImports.DBObject,(C)⇒commons.TypeImports.DBObject):Option[T]"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">findOne</span><span class="tparams">[<span name="A">A</span>, <span name="B">B</span>, <span name="C">C</span>]</span><span class="params">(<span name="o">o: <span class="extype" name="com.mongodb.casbah.MongoCollectionBase.findOne.A">A</span> = <span class="symbol"><span class="name"><a href="../../package.html">MongoDBObject.empty</a></span></span></span>, <span name="fields">fields: <span class="extype" name="com.mongodb.casbah.MongoCollectionBase.findOne.B">B</span> = <span class="symbol"><span class="name"><a href="../../package.html">MongoDBObject.empty</a></span></span></span>, <span name="orderBy">orderBy: <span class="extype" name="com.mongodb.casbah.MongoCollectionBase.findOne.C">C</span> = <span class="symbol"><span class="name"><a href="../../package.html">MongoDBObject.empty</a></span></span></span>, <span name="readPrefs">readPrefs: <span class="extype" name="com.mongodb.ReadPreference">mongodb.ReadPreference</span> = <span class="symbol"><span class="name"><a href="#getReadPreference:com.mongodb.ReadPreference">getReadPreference</a></span></span></span>, <span name="maxTime">maxTime: <span class="extype" name="scala.concurrent.duration.Duration">Duration</span> = <span class="symbol">Duration(0, MILLISECONDS)</span></span>)</span><span class="params">(<span class="implicit">implicit </span><span name="arg0">arg0: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.findOne.A">A</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>, <span name="arg1">arg1: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.findOne.B">B</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>, <span name="arg2">arg2: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.findOne.C">C</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>)</span><span class="result">: <span class="extype" name="scala.Option">Option</span>[<a href="#T&lt;:com.mongodb.casbah.commons.TypeImports.DBObject" class="extmbr" name="com.mongodb.casbah.MongoCollectionBase.T">T</a>]</span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@findOne[A,B,C](o:A,fields:B,orderBy:C,readPrefs:com.mongodb.ReadPreference,maxTime:scala.concurrent.duration.Duration)(implicitevidence$13:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitevidence$14:B=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitevidence$15:C=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):Option[MongoCollectionBase.this.T]" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Returns a single object from this collection matching the query.</p><div class="fullcomment"><div class="comment cmt"><p>Returns a single object from this collection matching the query.
</p></div><dl class="paramcmts block"><dt class="param">o</dt><dd class="cmt"><p>the query object</p></dd><dt class="param">fields</dt><dd class="cmt"><p>(optional) fields to return</p></dd><dt class="param">orderBy</dt><dd class="cmt"><p>(optional) a document whose fields specify the attributes on which to sort the result set.</p></dd><dt class="param">readPrefs</dt><dd class="cmt"><p>(optional)</p></dd><dt class="param">maxTime</dt><dd class="cmt"><p>(optional) the maximum duration that the server will allow this operation to execute before killing it</p></dd><dt>returns</dt><dd class="cmt"><p>(Option[T]) Some() of the object found, or <code>None</code> if no such object exists</p></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#findOne" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="findOne():Option[MongoCollectionBase.this.T]"></a>
      <a id="findOne():Option[T]"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">findOne</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Option">Option</span>[<a href="#T&lt;:com.mongodb.casbah.commons.TypeImports.DBObject" class="extmbr" name="com.mongodb.casbah.MongoCollectionBase.T">T</a>]</span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@findOne():Option[MongoCollectionBase.this.T]" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Returns a single object from this collection.</p><div class="fullcomment"><div class="comment cmt"><p>Returns a single object from this collection.</p></div><dl class="paramcmts block"><dt>returns</dt><dd class="cmt"><p>(Option[T]) Some() of the object found, or <code>None</code> if this collection is empty</p></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#findOneByID" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="findOneByID[B](id:AnyRef,fields:B)(implicitevidence$16:B=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):Option[MongoCollectionBase.this.T]"></a>
      <a id="findOneByID[B](AnyRef,B)((B)⇒commons.TypeImports.DBObject):Option[T]"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">findOneByID</span><span class="tparams">[<span name="B">B</span>]</span><span class="params">(<span name="id">id: <span class="extype" name="scala.AnyRef">AnyRef</span></span>, <span name="fields">fields: <span class="extype" name="com.mongodb.casbah.MongoCollectionBase.findOneByID.B">B</span></span>)</span><span class="params">(<span class="implicit">implicit </span><span name="arg0">arg0: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.findOneByID.B">B</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>)</span><span class="result">: <span class="extype" name="scala.Option">Option</span>[<a href="#T&lt;:com.mongodb.casbah.commons.TypeImports.DBObject" class="extmbr" name="com.mongodb.casbah.MongoCollectionBase.T">T</a>]</span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@findOneByID[B](id:AnyRef,fields:B)(implicitevidence$16:B=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):Option[MongoCollectionBase.this.T]" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Find an object by its ID.</p><div class="fullcomment"><div class="comment cmt"><p>Find an object by its ID.
Finds an object by its id. This compares the passed in
value to the _id field of the document.</p><p>Returns a single object from this collection matching the query.
</p></div><dl class="paramcmts block"><dt class="param">id</dt><dd class="cmt"><p>the id to match</p></dd><dt class="param">fields</dt><dd class="cmt"><p>fields to return</p></dd><dt>returns</dt><dd class="cmt"><p>(Option[T]) Some() of the object found, or <code>None</code> if no such object exists</p></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#findOneByID" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="findOneByID(id:AnyRef):Option[MongoCollectionBase.this.T]"></a>
      <a id="findOneByID(AnyRef):Option[T]"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">findOneByID</span><span class="params">(<span name="id">id: <span class="extype" name="scala.AnyRef">AnyRef</span></span>)</span><span class="result">: <span class="extype" name="scala.Option">Option</span>[<a href="#T&lt;:com.mongodb.casbah.commons.TypeImports.DBObject" class="extmbr" name="com.mongodb.casbah.MongoCollectionBase.T">T</a>]</span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@findOneByID(id:AnyRef):Option[MongoCollectionBase.this.T]" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Find an object by its ID.</p><div class="fullcomment"><div class="comment cmt"><p>Find an object by its ID.
Finds an object by its id. This compares the passed in
value to the _id field of the document.</p><p>Returns a single object from this collection matching the query.</p></div><dl class="paramcmts block"><dt class="param">id</dt><dd class="cmt"><p>the id to match</p></dd><dt>returns</dt><dd class="cmt"><p>(Option[T]) Some() of the object found, or <code>None</code> if no such object exists</p></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#fullName" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="fullName:String"></a>
      <a id="fullName:String"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">fullName</span><span class="result">: <span class="extype" name="scala.Predef.String">String</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@fullName:String" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Returns the full name of this collection, with the database name as a prefix.</p><div class="fullcomment"><div class="comment cmt"><p>Returns the full name of this collection, with the database name as a prefix.</p></div><dl class="paramcmts block"><dt>returns</dt><dd class="cmt"><p>the name of this collection</p></dd></dl></div>
    </li><li name="scala.AnyRef#getClass" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="getClass():Class[_]"></a>
      <a id="getClass():Class[_]"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier">final </span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">getClass</span><span class="params">()</span><span class="result">: <span class="extype" name="java.lang.Class">Class</span>[_]</span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@getClass():Class[_]" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#getCollection" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="getCollection(n:String):com.mongodb.casbah.MongoCollection"></a>
      <a id="getCollection(String):MongoCollection"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">getCollection</span><span class="params">(<span name="n">n: <span class="extype" name="scala.Predef.String">String</span></span>)</span><span class="result">: <a href="MongoCollection.html" class="extype" name="com.mongodb.casbah.MongoCollection">MongoCollection</a></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@getCollection(n:String):com.mongodb.casbah.MongoCollection" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Find a collection that is prefixed with this collection's name.</p><div class="fullcomment"><div class="comment cmt"><p>Find a collection that is prefixed with this collection's name.
A typical use of this might be
<blockquote>
<pre>
DBCollection users = mongo.getCollection( "wiki" ).getCollection( "users" );
</pre>
</blockquote>
Which is equilalent to
<pre>
<blockquote>
DBCollection users = mongo.getCollection( "wiki.users" );
</pre>
</blockquote></p></div><dl class="paramcmts block"><dt class="param">n</dt><dd class="cmt"><p>the name of the collection to find</p></dd><dt>returns</dt><dd class="cmt"><p>the matching collection
        TODO - Make this support type construction</p></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#getCount" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="getCount[A,B](query:A,fields:B,limit:Long,skip:Long,readPrefs:com.mongodb.ReadPreference,maxTime:scala.concurrent.duration.Duration)(implicitevidence$47:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitevidence$48:B=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):Int"></a>
      <a id="getCount[A,B](A,B,Long,Long,mongodb.ReadPreference,Duration)((A)⇒commons.TypeImports.DBObject,(B)⇒commons.TypeImports.DBObject):Int"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">getCount</span><span class="tparams">[<span name="A">A</span>, <span name="B">B</span>]</span><span class="params">(<span name="query">query: <span class="extype" name="com.mongodb.casbah.MongoCollectionBase.getCount.A">A</span> = <span class="symbol"><span class="name"><a href="../../package.html">MongoDBObject.empty</a></span></span></span>, <span name="fields">fields: <span class="extype" name="com.mongodb.casbah.MongoCollectionBase.getCount.B">B</span> = <span class="symbol"><span class="name"><a href="../../package.html">MongoDBObject.empty</a></span></span></span>, <span name="limit">limit: <span class="extype" name="scala.Long">Long</span> = <span class="symbol">0</span></span>, <span name="skip">skip: <span class="extype" name="scala.Long">Long</span> = <span class="symbol">0</span></span>, <span name="readPrefs">readPrefs: <span class="extype" name="com.mongodb.ReadPreference">mongodb.ReadPreference</span> = <span class="symbol"><span class="name"><a href="#getReadPreference:com.mongodb.ReadPreference">getReadPreference</a></span></span></span>, <span name="maxTime">maxTime: <span class="extype" name="scala.concurrent.duration.Duration">Duration</span> = <span class="symbol">Duration(0, MILLISECONDS)</span></span>)</span><span class="params">(<span class="implicit">implicit </span><span name="arg0">arg0: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.getCount.A">A</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>, <span name="arg1">arg1: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.getCount.B">B</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>)</span><span class="result">: <span class="extype" name="scala.Int">Int</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@getCount[A,B](query:A,fields:B,limit:Long,skip:Long,readPrefs:com.mongodb.ReadPreference,maxTime:scala.concurrent.duration.Duration)(implicitevidence$47:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitevidence$48:B=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):Int" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Returns the number of documents in the collection
that match the specified query
</p><div class="fullcomment"><div class="comment cmt"><p>Returns the number of documents in the collection
that match the specified query
</p></div><dl class="paramcmts block"><dt class="param">query</dt><dd class="cmt"><p>specifies the selection criteria</p></dd><dt class="param">fields</dt><dd class="cmt"><p>this is ignored</p></dd><dt class="param">limit</dt><dd class="cmt"><p>limit the count to this value</p></dd><dt class="param">skip</dt><dd class="cmt"><p>number of documents to skip</p></dd><dt class="param">readPrefs</dt><dd class="cmt"><p>The [ReadPreference] to be used for this operation</p></dd><dt class="param">maxTime</dt><dd class="cmt"><p>the maximum duration that the server will allow this operation to execute before killing it</p></dd><dt>returns</dt><dd class="cmt"><p>the number of documents that matches selection criteria</p></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#getDB" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="getDB:com.mongodb.casbah.MongoDB"></a>
      <a id="getDB:MongoDB"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">getDB</span><span class="result">: <a href="MongoDB.html" class="extype" name="com.mongodb.casbah.MongoDB">MongoDB</a></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@getDB:com.mongodb.casbah.MongoDB" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Returns the database this collection is a member of.</p><div class="fullcomment"><div class="comment cmt"><p>Returns the database this collection is a member of.</p></div><dl class="paramcmts block"><dt>returns</dt><dd class="cmt"><p>this collection's database</p></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#getFullName" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="getFullName:String"></a>
      <a id="getFullName:String"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">getFullName</span><span class="result">: <span class="extype" name="scala.Predef.String">String</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@getFullName:String" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Returns the full name of this collection, with the database name as a prefix.</p><div class="fullcomment"><div class="comment cmt"><p>Returns the full name of this collection, with the database name as a prefix.</p></div><dl class="paramcmts block"><dt>returns</dt><dd class="cmt"><p>the name of this collection</p></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#getIndexInfo" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="getIndexInfo:scala.collection.mutable.Buffer[com.mongodb.casbah.commons.TypeImports.DBObject]"></a>
      <a id="getIndexInfo:Buffer[commons.TypeImports.DBObject]"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">getIndexInfo</span><span class="result">: <span class="extype" name="scala.collection.mutable.Buffer">Buffer</span>[<a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a>]</span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@getIndexInfo:scala.collection.mutable.Buffer[com.mongodb.casbah.commons.TypeImports.DBObject]" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Return a list of the indexes for this collection.</p><div class="fullcomment"><div class="comment cmt"><p>Return a list of the indexes for this collection.  Each object
in the list is the &quot;info document&quot; from MongoDB
</p></div><dl class="paramcmts block"><dt>returns</dt><dd class="cmt"><p>list of index documents</p></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#getName" visbl="pub" data-isabs="false" fullComment="no" group="Ungrouped">
      <a id="getName:String"></a>
      <a id="getName:String"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">getName</span><span class="result">: <span class="extype" name="scala.Predef.String">String</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@getName:String" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      
    </li><li name="com.mongodb.casbah.MongoCollectionBase#getObjectClass" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="getObjectClass:Class[_]"></a>
      <a id="getObjectClass:Class[_]"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">getObjectClass</span><span class="result">: <span class="extype" name="scala.Predef.Class">Class</span>[_]</span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@getObjectClass:Class[_]" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Gets the default class for objects in the collection</p><div class="fullcomment"><div class="comment cmt"><p>Gets the default class for objects in the collection</p></div><dl class="paramcmts block"><dt>returns</dt><dd class="cmt"><p>the class</p></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#getOptions" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="getOptions:Int"></a>
      <a id="getOptions:Int"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">getOptions</span><span class="result">: <span class="extype" name="scala.Int">Int</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@getOptions:Int" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Manipulate Network Options
</p><div class="fullcomment"><div class="comment cmt"><p>Manipulate Network Options
</p></div><dl class="attributes block"> <dt>See also</dt><dd><span class="cmt"><p>com.mongodb.Bytes</p></span><span class="cmt"><p>com.mongodb.Mongo</p></span></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#getReadPreference" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="getReadPreference:com.mongodb.ReadPreference"></a>
      <a id="getReadPreference:mongodb.ReadPreference"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">getReadPreference</span><span class="result">: <span class="extype" name="com.mongodb.ReadPreference">mongodb.ReadPreference</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@getReadPreference:com.mongodb.ReadPreference" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Gets the read preference for this collection.</p><div class="fullcomment"><div class="comment cmt"><p>Gets the read preference for this collection. Will be used as default for
reads from any collection in this collection. See the
documentation for <a href="ReadPreference$.html" class="extype" name="com.mongodb.casbah.ReadPreference">com.mongodb.casbah.ReadPreference</a> for more information.
</p></div></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#getStats" visbl="pub" data-isabs="false" fullComment="no" group="Ungrouped">
      <a id="getStats:com.mongodb.CommandResult"></a>
      <a id="getStats:CommandResult"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">getStats</span><span class="result">: <span class="extype" name="com.mongodb.CommandResult">CommandResult</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@getStats:com.mongodb.CommandResult" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      
    </li><li name="com.mongodb.casbah.MongoCollectionBase#getWriteConcern" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="getWriteConcern:com.mongodb.WriteConcern"></a>
      <a id="getWriteConcern:mongodb.WriteConcern"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">getWriteConcern</span><span class="result">: <span class="extype" name="com.mongodb.WriteConcern">mongodb.WriteConcern</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@getWriteConcern:com.mongodb.WriteConcern" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">get the write concern for this database,
which is used for writes to any collection in this database.</p><div class="fullcomment"><div class="comment cmt"><p>get the write concern for this database,
which is used for writes to any collection in this database.
See the documentation for <span class="extype" name="com.mongodb.WriteConcern">com.mongodb.WriteConcern</span> for more info.
</p></div><dl class="attributes block"> <dt>See also</dt><dd><span class="cmt"><p>http://www.thebuzzmedia.com/mongodb-single-server-data-durability-guide/</p></span><span class="cmt"><p>WriteConcern</p></span></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#group" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="group[A,B,C](key:A,cond:B,initial:C,reduce:String,finalize:String,readPrefs:com.mongodb.ReadPreference)(implicitevidence$51:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitevidence$52:B=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitevidence$53:C=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):Iterable[MongoCollectionBase.this.T]"></a>
      <a id="group[A,B,C](A,B,C,String,String,mongodb.ReadPreference)((A)⇒commons.TypeImports.DBObject,(B)⇒commons.TypeImports.DBObject,(C)⇒commons.TypeImports.DBObject):Iterable[T]"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">group</span><span class="tparams">[<span name="A">A</span>, <span name="B">B</span>, <span name="C">C</span>]</span><span class="params">(<span name="key">key: <span class="extype" name="com.mongodb.casbah.MongoCollectionBase.group.A">A</span></span>, <span name="cond">cond: <span class="extype" name="com.mongodb.casbah.MongoCollectionBase.group.B">B</span></span>, <span name="initial">initial: <span class="extype" name="com.mongodb.casbah.MongoCollectionBase.group.C">C</span></span>, <span name="reduce">reduce: <span class="extype" name="scala.Predef.String">String</span></span>, <span name="finalize">finalize: <span class="extype" name="scala.Predef.String">String</span> = <span class="symbol">null</span></span>, <span name="readPrefs">readPrefs: <span class="extype" name="com.mongodb.ReadPreference">mongodb.ReadPreference</span> = <span class="symbol"><span class="name"><a href="#getReadPreference:com.mongodb.ReadPreference">getReadPreference</a></span></span></span>)</span><span class="params">(<span class="implicit">implicit </span><span name="arg0">arg0: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.group.A">A</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>, <span name="arg1">arg1: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.group.B">B</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>, <span name="arg2">arg2: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.group.C">C</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>)</span><span class="result">: <span class="extype" name="scala.Iterable">Iterable</span>[<a href="#T&lt;:com.mongodb.casbah.commons.TypeImports.DBObject" class="extmbr" name="com.mongodb.casbah.MongoCollectionBase.T">T</a>]</span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@group[A,B,C](key:A,cond:B,initial:C,reduce:String,finalize:String,readPrefs:com.mongodb.ReadPreference)(implicitevidence$51:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitevidence$52:B=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitevidence$53:C=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):Iterable[MongoCollectionBase.this.T]" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Applies a group operation
</p><div class="fullcomment"><div class="comment cmt"><p>Applies a group operation
</p></div><dl class="paramcmts block"><dt class="param">key</dt><dd class="cmt"><p>the key to group <code>{ a : true }</code></p></dd><dt class="param">cond</dt><dd class="cmt"><p>optional condition on query</p></dd><dt class="param">initial</dt><dd class="cmt"><p>initial value for first match on a key</p></dd><dt class="param">reduce</dt><dd class="cmt"><p>javascript reduce function</p></dd><dt class="param">finalize</dt><dd class="cmt"><p>An optional function that can operate on the result(s) of the reduce function.</p></dd><dt class="param">readPrefs</dt><dd class="cmt"><p>ReadPreferences for this command</p></dd><dt>returns</dt><dd class="cmt"><p>The results of the group</p></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#hashCode" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="hashCode():Int"></a>
      <a id="hashCode():Int"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">hashCode</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Int">Int</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@hashCode():Int" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="" class="extype" name="com.mongodb.casbah.MongoCollectionBase">MongoCollectionBase</a> → AnyRef → Any</dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#hintFields_=" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="hintFields_=[A](docs:List[A])(implicitevidence$60:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):Unit"></a>
      <a id="hintFields_=[A](List[A])((A)⇒commons.TypeImports.DBObject):Unit"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span title="gt4s: hintFields_$eq" class="name">hintFields_=</span><span class="tparams">[<span name="A">A</span>]</span><span class="params">(<span name="docs">docs: <span class="extype" name="scala.List">List</span>[<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.hintFields_=.A">A</span>]</span>)</span><span class="params">(<span class="implicit">implicit </span><span name="arg0">arg0: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.hintFields_=.A">A</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>)</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@hintFields_=[A](docs:List[A])(implicitevidence$60:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):Unit" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Set hint fields for this collection.</p><div class="fullcomment"><div class="comment cmt"><p>Set hint fields for this collection.</p></div><dl class="paramcmts block"><dt class="param">docs</dt><dd class="cmt"><p>a list of <code>DBObject</code>s to be used as hints</p></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#indexInfo" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="indexInfo:scala.collection.mutable.Buffer[com.mongodb.casbah.commons.TypeImports.DBObject]"></a>
      <a id="indexInfo:Buffer[commons.TypeImports.DBObject]"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">indexInfo</span><span class="result">: <span class="extype" name="scala.collection.mutable.Buffer">Buffer</span>[<a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a>]</span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@indexInfo:scala.collection.mutable.Buffer[com.mongodb.casbah.commons.TypeImports.DBObject]" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Return a list of the indexes for this collection.</p><div class="fullcomment"><div class="comment cmt"><p>Return a list of the indexes for this collection.  Each object
in the list is the &quot;info document&quot; from MongoDB
</p></div><dl class="paramcmts block"><dt>returns</dt><dd class="cmt"><p>list of index documents</p></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#initializeOrderedBulkOperation" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="initializeOrderedBulkOperation:com.mongodb.casbah.BulkWriteOperation"></a>
      <a id="initializeOrderedBulkOperation:BulkWriteOperation"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">initializeOrderedBulkOperation</span><span class="result">: <a href="BulkWriteOperation.html" class="extype" name="com.mongodb.casbah.BulkWriteOperation">BulkWriteOperation</a></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@initializeOrderedBulkOperation:com.mongodb.casbah.BulkWriteOperation" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Creates a builder for an ordered bulk operation.</p><div class="fullcomment"><div class="comment cmt"><p>Creates a builder for an ordered bulk operation.  Write requests included in the bulk operations will be executed in order,
and will halt on the first failure.
</p></div><dl class="paramcmts block"><dt>returns</dt><dd class="cmt"><p>the builder</p></dd></dl><dl class="attributes block"> <dt>Since</dt><dd><p>2.7</p></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#initializeUnorderedBulkOperation" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="initializeUnorderedBulkOperation:com.mongodb.casbah.BulkWriteOperation"></a>
      <a id="initializeUnorderedBulkOperation:BulkWriteOperation"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">initializeUnorderedBulkOperation</span><span class="result">: <a href="BulkWriteOperation.html" class="extype" name="com.mongodb.casbah.BulkWriteOperation">BulkWriteOperation</a></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@initializeUnorderedBulkOperation:com.mongodb.casbah.BulkWriteOperation" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Creates a builder for an unordered bulk operation.</p><div class="fullcomment"><div class="comment cmt"><p>Creates a builder for an unordered bulk operation. Write requests included in the bulk operation will be executed in an undefined
order, and all requests will be executed even if some fail.
</p></div><dl class="paramcmts block"><dt>returns</dt><dd class="cmt"><p>the builder</p></dd></dl><dl class="attributes block"> <dt>Since</dt><dd><p>2.7</p></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#insert" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="insert[A](insertOptions:com.mongodb.InsertOptions,docs:A*)(implicitdbObjView:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):com.mongodb.casbah.TypeImports.WriteResult"></a>
      <a id="insert[A](InsertOptions,A*)((A)⇒commons.TypeImports.DBObject):TypeImports.WriteResult"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">insert</span><span class="tparams">[<span name="A">A</span>]</span><span class="params">(<span name="insertOptions">insertOptions: <span class="extype" name="com.mongodb.InsertOptions">InsertOptions</span></span>, <span name="docs">docs: <span class="extype" name="com.mongodb.casbah.MongoCollectionBase.insert.A">A</span>*</span>)</span><span class="params">(<span class="implicit">implicit </span><span name="dbObjView">dbObjView: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.insert.A">A</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>)</span><span class="result">: <a href="TypeImports$.html#WriteResult=com.mongodb.WriteResult" class="extmbr" name="com.mongodb.casbah.TypeImports.WriteResult">TypeImports.WriteResult</a></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@insert[A](insertOptions:com.mongodb.InsertOptions,docs:A*)(implicitdbObjView:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):com.mongodb.casbah.TypeImports.WriteResult" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Saves document(s) to the database.</p><div class="fullcomment"><div class="comment cmt"><p>Saves document(s) to the database.
if doc doesn't have an _id, one will be added
you can get the _id that was added from doc after the insert
</p></div><dl class="paramcmts block"><dt class="param">insertOptions</dt><dd class="cmt"><p>the insertOptions</p></dd><dt class="param">docs</dt><dd class="cmt"><p>array of documents (&lt;% DBObject) to save</p></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#insert" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="insert[A](docs:A*)(implicitdbObjView:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitconcern:com.mongodb.WriteConcern,implicitencoder:com.mongodb.casbah.TypeImports.DBEncoder):com.mongodb.casbah.TypeImports.WriteResult"></a>
      <a id="insert[A](A*)((A)⇒commons.TypeImports.DBObject,mongodb.WriteConcern,TypeImports.DBEncoder):TypeImports.WriteResult"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">insert</span><span class="tparams">[<span name="A">A</span>]</span><span class="params">(<span name="docs">docs: <span class="extype" name="com.mongodb.casbah.MongoCollectionBase.insert.A">A</span>*</span>)</span><span class="params">(<span class="implicit">implicit </span><span name="dbObjView">dbObjView: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.insert.A">A</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>, <span name="concern">concern: <span class="extype" name="com.mongodb.WriteConcern">mongodb.WriteConcern</span> = <span class="symbol"><span class="name"><a href="#writeConcern:com.mongodb.WriteConcern">writeConcern</a></span></span></span>, <span name="encoder">encoder: <a href="TypeImports$.html#DBEncoder=com.mongodb.DBEncoder" class="extmbr" name="com.mongodb.casbah.TypeImports.DBEncoder">TypeImports.DBEncoder</a> = <span class="defval" name='<span class="name"><a href="#customEncoderFactory:Option[com.mongodb.DBEncoderFactory]">customEncoderFactory.map(_.create).orNull</a></span>'>...</span></span>)</span><span class="result">: <a href="TypeImports$.html#WriteResult=com.mongodb.WriteResult" class="extmbr" name="com.mongodb.casbah.TypeImports.WriteResult">TypeImports.WriteResult</a></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@insert[A](docs:A*)(implicitdbObjView:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitconcern:com.mongodb.WriteConcern,implicitencoder:com.mongodb.casbah.TypeImports.DBEncoder):com.mongodb.casbah.TypeImports.WriteResult" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Saves document(s) to the database.</p><div class="fullcomment"><div class="comment cmt"><p>Saves document(s) to the database.
if doc doesn't have an _id, one will be added
you can get the _id that was added from doc after the insert
</p></div><dl class="paramcmts block"><dt class="param">docs</dt><dd class="cmt"><p>array of documents (&lt;% DBObject) to save
             TODO - Wrapper for WriteResult?</p></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#insert" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="insert[A](doc:A,concern:com.mongodb.WriteConcern)(implicitdbObjView:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):com.mongodb.casbah.TypeImports.WriteResult"></a>
      <a id="insert[A](A,mongodb.WriteConcern)((A)⇒commons.TypeImports.DBObject):TypeImports.WriteResult"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">insert</span><span class="tparams">[<span name="A">A</span>]</span><span class="params">(<span name="doc">doc: <span class="extype" name="com.mongodb.casbah.MongoCollectionBase.insert.A">A</span></span>, <span name="concern">concern: <span class="extype" name="com.mongodb.WriteConcern">mongodb.WriteConcern</span></span>)</span><span class="params">(<span class="implicit">implicit </span><span name="dbObjView">dbObjView: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.insert.A">A</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>)</span><span class="result">: <a href="TypeImports$.html#WriteResult=com.mongodb.WriteResult" class="extmbr" name="com.mongodb.casbah.TypeImports.WriteResult">TypeImports.WriteResult</a></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@insert[A](doc:A,concern:com.mongodb.WriteConcern)(implicitdbObjView:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):com.mongodb.casbah.TypeImports.WriteResult" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Saves document(s) to the database.</p><div class="fullcomment"><div class="comment cmt"><p>Saves document(s) to the database.
if doc doesn't have an _id, one will be added
you can get the _id that was added from doc after the insert
</p></div><dl class="paramcmts block"><dt class="param">doc</dt><dd class="cmt"><p>array of documents (&lt;% DBObject) to save</p></dd><dt class="param">concern</dt><dd class="cmt"><p>the WriteConcern for the insert</p></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#internalClass_=" visbl="pub" data-isabs="false" fullComment="no" group="Ungrouped">
      <a id="internalClass_=[A&lt;:com.mongodb.casbah.commons.TypeImports.DBObject](path:String,c:Class[A]):Unit"></a>
      <a id="internalClass_=[A&lt;:commons.TypeImports.DBObject](String,Class[A]):Unit"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span title="gt4s: internalClass_$eq" class="name">internalClass_=</span><span class="tparams">[<span name="A">A &lt;: <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>]</span><span class="params">(<span name="path">path: <span class="extype" name="scala.Predef.String">String</span></span>, <span name="c">c: <span class="extype" name="scala.Predef.Class">Class</span>[<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.internalClass_=.A">A</span>]</span>)</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@internalClass_=[A&lt;:com.mongodb.casbah.commons.TypeImports.DBObject](path:String,c:Class[A]):Unit" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      
    </li><li name="com.mongodb.casbah.MongoCollectionBase#isCapped" visbl="pub" data-isabs="false" fullComment="no" group="Ungrouped">
      <a id="isCapped:Boolean"></a>
      <a id="isCapped:Boolean"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">isCapped</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@isCapped:Boolean" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      
    </li><li name="scala.Any#isInstanceOf" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="isInstanceOf[T0]:Boolean"></a>
      <a id="isInstanceOf[T0]:Boolean"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier">final </span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">isInstanceOf</span><span class="tparams">[<span name="T0">T0</span>]</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@isInstanceOf[T0]:Boolean" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>Any</dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#iterator" visbl="pub" data-isabs="false" fullComment="no" group="Ungrouped">
      <a id="iterator:MongoCollectionBase.this.CursorType"></a>
      <a id="iterator:CursorType"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">iterator</span><span class="result">: <a href="#CursorType" class="extmbr" name="com.mongodb.casbah.MongoCollectionBase.CursorType">CursorType</a></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@iterator:MongoCollectionBase.this.CursorType" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      
    </li><li name="com.mongodb.casbah.commons.Logging#log" visbl="prt" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="log:com.mongodb.casbah.commons.Logger"></a>
      <a id="log:Logger"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">var</span>
      </span>
      <span class="symbol">
        <span class="name">log</span><span class="result">: <a href="commons/Logger.html" class="extype" name="com.mongodb.casbah.commons.Logger">Logger</a></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@log:com.mongodb.casbah.commons.Logger" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>protected[<a href="package.html" class="extype" name="com.mongodb.casbah">com.mongodb.casbah</a>] </dd><dt>Definition Classes</dt><dd><a href="commons/Logging.html" class="extype" name="com.mongodb.casbah.commons.Logging">Logging</a></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#mapReduce" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="mapReduce(cmd:com.mongodb.casbah.map_reduce.MapReduceCommand):com.mongodb.casbah.map_reduce.MapReduceResult"></a>
      <a id="mapReduce(map_reduce.MapReduceCommand):MapReduceResult"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">mapReduce</span><span class="params">(<span name="cmd">cmd: <a href="map_reduce/MapReduceCommand.html" class="extype" name="com.mongodb.casbah.map_reduce.MapReduceCommand">map_reduce.MapReduceCommand</a></span>)</span><span class="result">: <a href="map_reduce/MapReduceResult.html" class="extype" name="com.mongodb.casbah.map_reduce.MapReduceResult">MapReduceResult</a></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@mapReduce(cmd:com.mongodb.casbah.map_reduce.MapReduceCommand):com.mongodb.casbah.map_reduce.MapReduceResult" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">mapReduce execute a mapReduce against this collection.</p><div class="fullcomment"><div class="comment cmt"><p>mapReduce execute a mapReduce against this collection.</p><p>Throws a MongoExecutionTimeoutException if exceeds max duration limit otherwise returns a MapReduceResult
</p></div><dl class="paramcmts block"><dt class="param">cmd</dt><dd class="cmt"><p>the MapReduceCommand</p></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#mapReduce" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="mapReduce(mapFunction:com.mongodb.casbah.Imports.JSFunction,reduceFunction:com.mongodb.casbah.Imports.JSFunction,output:com.mongodb.casbah.Imports.MapReduceOutputTarget,query:Option[com.mongodb.casbah.commons.TypeImports.DBObject],sort:Option[com.mongodb.casbah.commons.TypeImports.DBObject],limit:Option[Int],finalizeFunction:Option[com.mongodb.casbah.Imports.JSFunction],jsScope:Option[com.mongodb.casbah.commons.TypeImports.DBObject],verbose:Boolean,maxTime:Option[scala.concurrent.duration.Duration]):com.mongodb.casbah.map_reduce.MapReduceResult"></a>
      <a id="mapReduce(Imports.JSFunction,Imports.JSFunction,Imports.MapReduceOutputTarget,Option[commons.TypeImports.DBObject],Option[commons.TypeImports.DBObject],Option[Int],Option[Imports.JSFunction],Option[commons.TypeImports.DBObject],Boolean,Option[Duration]):MapReduceResult"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">mapReduce</span><span class="params">(<span name="mapFunction">mapFunction: <a href="Imports$.html#JSFunction=String" class="extmbr" name="com.mongodb.casbah.Imports.JSFunction">Imports.JSFunction</a></span>, <span name="reduceFunction">reduceFunction: <a href="Imports$.html#JSFunction=String" class="extmbr" name="com.mongodb.casbah.Imports.JSFunction">Imports.JSFunction</a></span>, <span name="output">output: <a href="Imports$.html#MapReduceOutputTarget=com.mongodb.casbah.map_reduce.MapReduceOutputTarget" class="extmbr" name="com.mongodb.casbah.Imports.MapReduceOutputTarget">Imports.MapReduceOutputTarget</a></span>, <span name="query">query: <span class="extype" name="scala.Option">Option</span>[<a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a>] = <span class="symbol">None</span></span>, <span name="sort">sort: <span class="extype" name="scala.Option">Option</span>[<a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a>] = <span class="symbol">None</span></span>, <span name="limit">limit: <span class="extype" name="scala.Option">Option</span>[<span class="extype" name="scala.Int">Int</span>] = <span class="symbol">None</span></span>, <span name="finalizeFunction">finalizeFunction: <span class="extype" name="scala.Option">Option</span>[<a href="Imports$.html#JSFunction=String" class="extmbr" name="com.mongodb.casbah.Imports.JSFunction">Imports.JSFunction</a>] = <span class="symbol">None</span></span>, <span name="jsScope">jsScope: <span class="extype" name="scala.Option">Option</span>[<a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a>] = <span class="symbol">None</span></span>, <span name="verbose">verbose: <span class="extype" name="scala.Boolean">Boolean</span> = <span class="symbol">false</span></span>, <span name="maxTime">maxTime: <span class="extype" name="scala.Option">Option</span>[<span class="extype" name="scala.concurrent.duration.Duration">Duration</span>] = <span class="symbol">None</span></span>)</span><span class="result">: <a href="map_reduce/MapReduceResult.html" class="extype" name="com.mongodb.casbah.map_reduce.MapReduceResult">MapReduceResult</a></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@mapReduce(mapFunction:com.mongodb.casbah.Imports.JSFunction,reduceFunction:com.mongodb.casbah.Imports.JSFunction,output:com.mongodb.casbah.Imports.MapReduceOutputTarget,query:Option[com.mongodb.casbah.commons.TypeImports.DBObject],sort:Option[com.mongodb.casbah.commons.TypeImports.DBObject],limit:Option[Int],finalizeFunction:Option[com.mongodb.casbah.Imports.JSFunction],jsScope:Option[com.mongodb.casbah.commons.TypeImports.DBObject],verbose:Boolean,maxTime:Option[scala.concurrent.duration.Duration]):com.mongodb.casbah.map_reduce.MapReduceResult" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">mapReduce execute a mapReduce against this collection.</p><div class="fullcomment"><div class="comment cmt"><p>mapReduce execute a mapReduce against this collection.
</p></div><dl class="paramcmts block"><dt class="param">mapFunction</dt><dd class="cmt"><p>the map function (JSFunction is just a type alias for String)</p></dd><dt class="param">reduceFunction</dt><dd class="cmt"><p>the reduce function (JSFunction is just a type alias for String)</p></dd><dt class="param">output</dt><dd class="cmt"><p>the location of the result of the map-reduce operation, defaults to inline.
                         You can output to a collection, output to a collection with an action, or output inline.</p></dd><dt class="param">query</dt><dd class="cmt"><p>(optional) the selection criteria for the documents input to the map function.</p></dd><dt class="param">sort</dt><dd class="cmt"><p>(optional) the input documents, useful for optimization.</p></dd><dt class="param">limit</dt><dd class="cmt"><p>(optional) the maximum number of documents to return from the collection before map reduce</p></dd><dt class="param">finalizeFunction</dt><dd class="cmt"><p>(optional) the finalize function (JSFunction is just a type alias for String)</p></dd><dt class="param">jsScope</dt><dd class="cmt"><p>(optional) global variables that are accessible in the map, reduce and finalize functions</p></dd><dt class="param">verbose</dt><dd class="cmt"><p>(optional) include the timing information in the result information</p></dd><dt class="param">maxTime</dt><dd class="cmt"><p>(optional) the maximum duration that the server will allow this operation to execute before killing it</p></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#name" visbl="pub" data-isabs="false" fullComment="no" group="Ungrouped">
      <a id="name:String"></a>
      <a id="name:String"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">name</span><span class="result">: <span class="extype" name="scala.Predef.String">String</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@name:String" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      
    </li><li name="scala.AnyRef#ne" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="ne(x$1:AnyRef):Boolean"></a>
      <a id="ne(AnyRef):Boolean"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier">final </span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">ne</span><span class="params">(<span name="arg0">arg0: <span class="extype" name="scala.AnyRef">AnyRef</span></span>)</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@ne(x$1:AnyRef):Boolean" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
    </li><li name="scala.AnyRef#notify" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="notify():Unit"></a>
      <a id="notify():Unit"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier">final </span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">notify</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@notify():Unit" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
    </li><li name="scala.AnyRef#notifyAll" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="notifyAll():Unit"></a>
      <a id="notifyAll():Unit"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier">final </span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">notifyAll</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@notifyAll():Unit" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#objectClass" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="objectClass:Class[_]"></a>
      <a id="objectClass:Class[_]"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">objectClass</span><span class="result">: <span class="extype" name="scala.Predef.Class">Class</span>[_]</span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@objectClass:Class[_]" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Gets the default class for objects in the collection</p><div class="fullcomment"><div class="comment cmt"><p>Gets the default class for objects in the collection</p></div><dl class="paramcmts block"><dt>returns</dt><dd class="cmt"><p>the class</p></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#objectClass_=" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="objectClass_=[A&lt;:com.mongodb.casbah.commons.TypeImports.DBObject](c:Class[A])(implicitevidence$50:Manifest[A]):com.mongodb.casbah.MongoGenericTypedCollection[A]"></a>
      <a id="objectClass_=[A&lt;:commons.TypeImports.DBObject](Class[A])(Manifest[A]):MongoGenericTypedCollection[A]"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span title="gt4s: objectClass_$eq" class="name">objectClass_=</span><span class="tparams">[<span name="A">A &lt;: <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>]</span><span class="params">(<span name="c">c: <span class="extype" name="scala.Predef.Class">Class</span>[<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.objectClass_=.A">A</span>]</span>)</span><span class="params">(<span class="implicit">implicit </span><span name="arg0">arg0: <span class="extype" name="scala.Predef.Manifest">Manifest</span>[<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.objectClass_=.A">A</span>]</span>)</span><span class="result">: <a href="MongoGenericTypedCollection.html" class="extype" name="com.mongodb.casbah.MongoGenericTypedCollection">MongoGenericTypedCollection</a>[<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.objectClass_=.A">A</span>]</span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@objectClass_=[A&lt;:com.mongodb.casbah.commons.TypeImports.DBObject](c:Class[A])(implicitevidence$50:Manifest[A]):com.mongodb.casbah.MongoGenericTypedCollection[A]" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">setObjectClass</p><div class="fullcomment"><div class="comment cmt"><p>setObjectClass</p><p>Set a subtype of DBObject which will be used
to deserialize documents returned from MongoDB.</p><p>This method will return a new <code>MongoTypedCollection[A]</code>
which you should capture if you want explicit casting.
Else, this collection will instantiate instances of A but cast them to
the current <code>T</code> (DBObject if you have a generic collection)
</p></div><dl class="paramcmts block"><dt class="tparam">A</dt><dd class="cmt"><p>A Subtype of DBObject</p></dd><dt class="param">c</dt><dd class="cmt"><p>(Class[A])</p></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#options" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="options:Int"></a>
      <a id="options:Int"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">options</span><span class="result">: <span class="extype" name="scala.Int">Int</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@options:Int" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Manipulate Network Options
</p><div class="fullcomment"><div class="comment cmt"><p>Manipulate Network Options
</p></div><dl class="attributes block"> <dt>See also</dt><dd><span class="cmt"><p>com.mongodb.Bytes</p></span><span class="cmt"><p>com.mongodb.Mongo</p></span></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#parallelScan" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="parallelScan(options:com.mongodb.casbah.ParallelScanOptions):scala.collection.mutable.Buffer[com.mongodb.casbah.Cursor]"></a>
      <a id="parallelScan(ParallelScanOptions):Buffer[Cursor]"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">parallelScan</span><span class="params">(<span name="options">options: <a href="ParallelScanOptions.html" class="extype" name="com.mongodb.casbah.ParallelScanOptions">ParallelScanOptions</a></span>)</span><span class="result">: <span class="extype" name="scala.collection.mutable.Buffer">Buffer</span>[<a href="Cursor.html" class="extype" name="com.mongodb.casbah.Cursor">Cursor</a>]</span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@parallelScan(options:com.mongodb.casbah.ParallelScanOptions):scala.collection.mutable.Buffer[com.mongodb.casbah.Cursor]" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Return a list of cursors over the collection that can be used to scan it in parallel.</p><div class="fullcomment"><div class="comment cmt"><p>Return a list of cursors over the collection that can be used to scan it in parallel.</p><p><b>Note:</b> As of MongoDB 2.6, this method will work against a mongod, but not a mongos.
</p></div><dl class="paramcmts block"><dt class="param">options</dt><dd class="cmt"><p>the parallel scan options</p></dd><dt>returns</dt><dd class="cmt"><p>a list of cursors, whose size may be less than the number requested</p></dd></dl><dl class="attributes block"> <dt>Since</dt><dd><p>2.7</p></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#readPreference" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="readPreference:com.mongodb.ReadPreference"></a>
      <a id="readPreference:mongodb.ReadPreference"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">readPreference</span><span class="result">: <span class="extype" name="com.mongodb.ReadPreference">mongodb.ReadPreference</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@readPreference:com.mongodb.ReadPreference" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Gets the read preference for this collection.</p><div class="fullcomment"><div class="comment cmt"><p>Gets the read preference for this collection. Will be used as default for
reads from any collection in this collection. See the
documentation for <a href="ReadPreference$.html" class="extype" name="com.mongodb.casbah.ReadPreference">com.mongodb.casbah.ReadPreference</a> for more information.
</p></div></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#readPreference_=" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="readPreference_=(pref:com.mongodb.ReadPreference):Unit"></a>
      <a id="readPreference_=(mongodb.ReadPreference):Unit"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span title="gt4s: readPreference_$eq" class="name">readPreference_=</span><span class="params">(<span name="pref">pref: <span class="extype" name="com.mongodb.ReadPreference">mongodb.ReadPreference</span></span>)</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@readPreference_=(pref:com.mongodb.ReadPreference):Unit" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Sets the read preference for this collection.</p><div class="fullcomment"><div class="comment cmt"><p>Sets the read preference for this collection. Will be used as default for
reads from any collection in this collection. See the
documentation for <a href="ReadPreference$.html" class="extype" name="com.mongodb.casbah.ReadPreference">com.mongodb.casbah.ReadPreference</a> for more information.
</p></div><dl class="paramcmts block"><dt class="param">pref</dt><dd class="cmt"><p>Read Preference to use</p></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#remove" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="remove[A](o:A,concern:com.mongodb.WriteConcern)(implicitdbObjView:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitencoder:com.mongodb.casbah.TypeImports.DBEncoder):com.mongodb.casbah.TypeImports.WriteResult"></a>
      <a id="remove[A](A,mongodb.WriteConcern)((A)⇒commons.TypeImports.DBObject,TypeImports.DBEncoder):TypeImports.WriteResult"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">remove</span><span class="tparams">[<span name="A">A</span>]</span><span class="params">(<span name="o">o: <span class="extype" name="com.mongodb.casbah.MongoCollectionBase.remove.A">A</span></span>, <span name="concern">concern: <span class="extype" name="com.mongodb.WriteConcern">mongodb.WriteConcern</span> = <span class="symbol"><span class="name"><a href="#getWriteConcern:com.mongodb.WriteConcern">getWriteConcern</a></span></span></span>)</span><span class="params">(<span class="implicit">implicit </span><span name="dbObjView">dbObjView: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.remove.A">A</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>, <span name="encoder">encoder: <a href="TypeImports$.html#DBEncoder=com.mongodb.DBEncoder" class="extmbr" name="com.mongodb.casbah.TypeImports.DBEncoder">TypeImports.DBEncoder</a> = <span class="defval" name='<span class="name"><a href="#customEncoderFactory:Option[com.mongodb.DBEncoderFactory]">customEncoderFactory.map(_.create).orNull</a></span>'>...</span></span>)</span><span class="result">: <a href="TypeImports$.html#WriteResult=com.mongodb.WriteResult" class="extmbr" name="com.mongodb.casbah.TypeImports.WriteResult">TypeImports.WriteResult</a></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@remove[A](o:A,concern:com.mongodb.WriteConcern)(implicitdbObjView:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitencoder:com.mongodb.casbah.TypeImports.DBEncoder):com.mongodb.casbah.TypeImports.WriteResult" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Removes objects from the database collection.</p><div class="fullcomment"><div class="comment cmt"><p>Removes objects from the database collection.</p></div><dl class="paramcmts block"><dt class="param">o</dt><dd class="cmt"><p>the object that documents to be removed must match</p></dd><dt class="param">concern</dt><dd class="cmt"><p>WriteConcern for this operation
               TODO - Wrapper for WriteResult?</p></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#rename" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="rename(newName:String,dropTarget:Boolean):com.mongodb.casbah.MongoCollection"></a>
      <a id="rename(String,Boolean):MongoCollection"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">rename</span><span class="params">(<span name="newName">newName: <span class="extype" name="scala.Predef.String">String</span></span>, <span name="dropTarget">dropTarget: <span class="extype" name="scala.Boolean">Boolean</span></span>)</span><span class="result">: <a href="MongoCollection.html" class="extype" name="com.mongodb.casbah.MongoCollection">MongoCollection</a></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@rename(newName:String,dropTarget:Boolean):com.mongodb.casbah.MongoCollection" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">does a rename of this collection to newName
As per the Java API this returns a *NEW* Collection,
and the old collection is probably no good anymore.</p><div class="fullcomment"><div class="comment cmt"><p>does a rename of this collection to newName
As per the Java API this returns a *NEW* Collection,
and the old collection is probably no good anymore.</p><p>This collection *WILL NOT* mutate --- the instance will
still point at a now nonexistant collection with the old name
... You must capture the return value for the new instance.
</p></div><dl class="paramcmts block"><dt class="param">newName</dt><dd class="cmt"><p>new collection name (not a full namespace)</p></dd><dt class="param">dropTarget</dt><dd class="cmt"><p>if a collection with the new name exists, whether or not to drop it</p></dd><dt>returns</dt><dd class="cmt"><p>the new collection</p></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#rename" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="rename(newName:String):com.mongodb.casbah.MongoCollection"></a>
      <a id="rename(String):MongoCollection"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">rename</span><span class="params">(<span name="newName">newName: <span class="extype" name="scala.Predef.String">String</span></span>)</span><span class="result">: <a href="MongoCollection.html" class="extype" name="com.mongodb.casbah.MongoCollection">MongoCollection</a></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@rename(newName:String):com.mongodb.casbah.MongoCollection" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">does a rename of this collection to newName
As per the Java API this returns a *NEW* Collection,
and the old collection is probably no good anymore.</p><div class="fullcomment"><div class="comment cmt"><p>does a rename of this collection to newName
As per the Java API this returns a *NEW* Collection,
and the old collection is probably no good anymore.</p><p>This collection *WILL NOT* mutate --- the instance will
still point at a now nonexistant collection with the old name
... You must capture the return value for the new instance.
</p></div><dl class="paramcmts block"><dt class="param">newName</dt><dd class="cmt"><p>new collection name (not a full namespace)</p></dd><dt>returns</dt><dd class="cmt"><p>the new collection</p></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#resetOptions" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="resetOptions():Unit"></a>
      <a id="resetOptions():Unit"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">resetOptions</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@resetOptions():Unit" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Manipulate Network Options
</p><div class="fullcomment"><div class="comment cmt"><p>Manipulate Network Options
</p></div><dl class="attributes block"> <dt>See also</dt><dd><span class="cmt"><p>com.mongodb.Bytes</p></span><span class="cmt"><p>com.mongodb.Mongo</p></span></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#save" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="save[A](o:A,concern:com.mongodb.WriteConcern)(implicitdbObjView:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):com.mongodb.casbah.TypeImports.WriteResult"></a>
      <a id="save[A](A,mongodb.WriteConcern)((A)⇒commons.TypeImports.DBObject):TypeImports.WriteResult"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">save</span><span class="tparams">[<span name="A">A</span>]</span><span class="params">(<span name="o">o: <span class="extype" name="com.mongodb.casbah.MongoCollectionBase.save.A">A</span></span>, <span name="concern">concern: <span class="extype" name="com.mongodb.WriteConcern">mongodb.WriteConcern</span> = <span class="symbol"><span class="name"><a href="#getWriteConcern:com.mongodb.WriteConcern">getWriteConcern</a></span></span></span>)</span><span class="params">(<span class="implicit">implicit </span><span name="dbObjView">dbObjView: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.save.A">A</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>)</span><span class="result">: <a href="TypeImports$.html#WriteResult=com.mongodb.WriteResult" class="extmbr" name="com.mongodb.casbah.TypeImports.WriteResult">TypeImports.WriteResult</a></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@save[A](o:A,concern:com.mongodb.WriteConcern)(implicitdbObjView:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):com.mongodb.casbah.TypeImports.WriteResult" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Saves an object to this collection.</p><div class="fullcomment"><div class="comment cmt"><p>Saves an object to this collection.</p></div><dl class="paramcmts block"><dt class="param">o</dt><dd class="cmt"><p>the <code>DBObject</code> to save
         will add <code>_id</code> field to o if needed
         TODO - Wrapper for WriteResult?</p></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#setHintFields" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="setHintFields[A](docs:List[A])(implicitevidence$59:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):Unit"></a>
      <a id="setHintFields[A](List[A])((A)⇒commons.TypeImports.DBObject):Unit"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">setHintFields</span><span class="tparams">[<span name="A">A</span>]</span><span class="params">(<span name="docs">docs: <span class="extype" name="scala.List">List</span>[<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.setHintFields.A">A</span>]</span>)</span><span class="params">(<span class="implicit">implicit </span><span name="arg0">arg0: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.setHintFields.A">A</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>)</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@setHintFields[A](docs:List[A])(implicitevidence$59:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):Unit" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Set hint fields for this collection.</p><div class="fullcomment"><div class="comment cmt"><p>Set hint fields for this collection.</p></div><dl class="paramcmts block"><dt class="param">docs</dt><dd class="cmt"><p>a list of <code>DBObject</code>s to be used as hints</p></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#setInternalClass" visbl="pub" data-isabs="false" fullComment="no" group="Ungrouped">
      <a id="setInternalClass[A&lt;:com.mongodb.casbah.commons.TypeImports.DBObject](path:String,c:Class[A]):Unit"></a>
      <a id="setInternalClass[A&lt;:commons.TypeImports.DBObject](String,Class[A]):Unit"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">setInternalClass</span><span class="tparams">[<span name="A">A &lt;: <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>]</span><span class="params">(<span name="path">path: <span class="extype" name="scala.Predef.String">String</span></span>, <span name="c">c: <span class="extype" name="scala.Predef.Class">Class</span>[<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.setInternalClass.A">A</span>]</span>)</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@setInternalClass[A&lt;:com.mongodb.casbah.commons.TypeImports.DBObject](path:String,c:Class[A]):Unit" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      
    </li><li name="com.mongodb.casbah.MongoCollectionBase#setObjectClass" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="setObjectClass[A&lt;:com.mongodb.casbah.commons.TypeImports.DBObject](c:Class[A])(implicitevidence$49:Manifest[A]):com.mongodb.casbah.MongoGenericTypedCollection[A]"></a>
      <a id="setObjectClass[A&lt;:commons.TypeImports.DBObject](Class[A])(Manifest[A]):MongoGenericTypedCollection[A]"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">setObjectClass</span><span class="tparams">[<span name="A">A &lt;: <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>]</span><span class="params">(<span name="c">c: <span class="extype" name="scala.Predef.Class">Class</span>[<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.setObjectClass.A">A</span>]</span>)</span><span class="params">(<span class="implicit">implicit </span><span name="arg0">arg0: <span class="extype" name="scala.Predef.Manifest">Manifest</span>[<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.setObjectClass.A">A</span>]</span>)</span><span class="result">: <a href="MongoGenericTypedCollection.html" class="extype" name="com.mongodb.casbah.MongoGenericTypedCollection">MongoGenericTypedCollection</a>[<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.setObjectClass.A">A</span>]</span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@setObjectClass[A&lt;:com.mongodb.casbah.commons.TypeImports.DBObject](c:Class[A])(implicitevidence$49:Manifest[A]):com.mongodb.casbah.MongoGenericTypedCollection[A]" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">setObjectClass</p><div class="fullcomment"><div class="comment cmt"><p>setObjectClass</p><p>Set a subtype of DBObject which will be used
to deserialize documents returned from MongoDB.</p><p>This method will return a new <code>MongoTypedCollection[A]</code>
which you should capture if you want explicit casting.
Else, this collection will instantiate instances of A but cast them to
the current <code>T</code> (DBObject if you have a generic collection)
</p></div><dl class="paramcmts block"><dt class="tparam">A</dt><dd class="cmt"><p>A Subtype of DBObject
          TODO - Ensure proper subtype return</p></dd><dt class="param">c</dt><dd class="cmt"><p>(Class[A])</p></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#setReadPreference" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="setReadPreference(pref:com.mongodb.ReadPreference):Unit"></a>
      <a id="setReadPreference(mongodb.ReadPreference):Unit"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">setReadPreference</span><span class="params">(<span name="pref">pref: <span class="extype" name="com.mongodb.ReadPreference">mongodb.ReadPreference</span></span>)</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@setReadPreference(pref:com.mongodb.ReadPreference):Unit" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Sets the read preference for this collection.</p><div class="fullcomment"><div class="comment cmt"><p>Sets the read preference for this collection. Will be used as default for
reads from any collection in this collection. See the
documentation for <a href="ReadPreference$.html" class="extype" name="com.mongodb.casbah.ReadPreference">com.mongodb.casbah.ReadPreference</a> for more information.
</p></div><dl class="paramcmts block"><dt class="param">pref</dt><dd class="cmt"><p>Read Preference to use</p></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#setWriteConcern" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="setWriteConcern(concern:com.mongodb.WriteConcern):Unit"></a>
      <a id="setWriteConcern(mongodb.WriteConcern):Unit"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">setWriteConcern</span><span class="params">(<span name="concern">concern: <span class="extype" name="com.mongodb.WriteConcern">mongodb.WriteConcern</span></span>)</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@setWriteConcern(concern:com.mongodb.WriteConcern):Unit" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Set the write concern for this database.</p><div class="fullcomment"><div class="comment cmt"><p>Set the write concern for this database.
Will be used for writes to any collection in this database.
See the documentation for <span class="extype" name="com.mongodb.WriteConcern">com.mongodb.WriteConcern</span> for more info.
</p></div><dl class="paramcmts block"><dt class="param">concern</dt><dd class="cmt"><p>(WriteConcern) The write concern to use</p></dd></dl><dl class="attributes block"> <dt>See also</dt><dd><span class="cmt"><p>http://www.thebuzzmedia.com/mongodb-single-server-data-durability-guide/</p></span><span class="cmt"><p>WriteConcern</p></span></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#stats" visbl="pub" data-isabs="false" fullComment="no" group="Ungrouped">
      <a id="stats:com.mongodb.CommandResult"></a>
      <a id="stats:CommandResult"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">stats</span><span class="result">: <span class="extype" name="com.mongodb.CommandResult">CommandResult</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@stats:com.mongodb.CommandResult" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      
    </li><li name="scala.AnyRef#synchronized" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="synchronized[T0](x$1:=&gt;T0):T0"></a>
      <a id="synchronized[T0](⇒T0):T0"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier">final </span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">synchronized</span><span class="tparams">[<span name="T0">T0</span>]</span><span class="params">(<span name="arg0">arg0: ⇒ <span class="extype" name="java.lang.AnyRef.synchronized.T0">T0</span></span>)</span><span class="result">: <span class="extype" name="java.lang.AnyRef.synchronized.T0">T0</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@synchronized[T0](x$1:=&gt;T0):T0" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#toString" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="toString():String"></a>
      <a id="toString():String"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">toString</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Predef.String">String</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@toString():String" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd><a href="" class="extype" name="com.mongodb.casbah.MongoCollectionBase">MongoCollectionBase</a> → AnyRef → Any</dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#update" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="update[A,B](q:A,o:B,upsert:Boolean,multi:Boolean,concern:com.mongodb.WriteConcern,bypassDocumentValidation:Option[Boolean])(implicitqueryView:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitobjView:B=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitencoder:com.mongodb.casbah.TypeImports.DBEncoder):com.mongodb.casbah.TypeImports.WriteResult"></a>
      <a id="update[A,B](A,B,Boolean,Boolean,mongodb.WriteConcern,Option[Boolean])((A)⇒commons.TypeImports.DBObject,(B)⇒commons.TypeImports.DBObject,TypeImports.DBEncoder):TypeImports.WriteResult"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">update</span><span class="tparams">[<span name="A">A</span>, <span name="B">B</span>]</span><span class="params">(<span name="q">q: <span class="extype" name="com.mongodb.casbah.MongoCollectionBase.update.A">A</span></span>, <span name="o">o: <span class="extype" name="com.mongodb.casbah.MongoCollectionBase.update.B">B</span></span>, <span name="upsert">upsert: <span class="extype" name="scala.Boolean">Boolean</span> = <span class="symbol">false</span></span>, <span name="multi">multi: <span class="extype" name="scala.Boolean">Boolean</span> = <span class="symbol">false</span></span>, <span name="concern">concern: <span class="extype" name="com.mongodb.WriteConcern">mongodb.WriteConcern</span> = <span class="symbol"><span class="name"><a href="#writeConcern:com.mongodb.WriteConcern">this.writeConcern</a></span></span></span>, <span name="bypassDocumentValidation">bypassDocumentValidation: <span class="extype" name="scala.Option">Option</span>[<span class="extype" name="scala.Boolean">Boolean</span>] = <span class="symbol">None</span></span>)</span><span class="params">(<span class="implicit">implicit </span><span name="queryView">queryView: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.update.A">A</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>, <span name="objView">objView: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.update.B">B</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>, <span name="encoder">encoder: <a href="TypeImports$.html#DBEncoder=com.mongodb.DBEncoder" class="extmbr" name="com.mongodb.casbah.TypeImports.DBEncoder">TypeImports.DBEncoder</a> = <span class="defval" name='<span class="name"><a href="#customEncoderFactory:Option[com.mongodb.DBEncoderFactory]">customEncoderFactory.map(_.create).orNull</a></span>'>...</span></span>)</span><span class="result">: <a href="TypeImports$.html#WriteResult=com.mongodb.WriteResult" class="extmbr" name="com.mongodb.casbah.TypeImports.WriteResult">TypeImports.WriteResult</a></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@update[A,B](q:A,o:B,upsert:Boolean,multi:Boolean,concern:com.mongodb.WriteConcern,bypassDocumentValidation:Option[Boolean])(implicitqueryView:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitobjView:B=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitencoder:com.mongodb.casbah.TypeImports.DBEncoder):com.mongodb.casbah.TypeImports.WriteResult" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Performs an update operation.</p><div class="fullcomment"><div class="comment cmt"><p>Performs an update operation.</p></div><dl class="paramcmts block"><dt class="param">q</dt><dd class="cmt"><p>search query for old object to update</p></dd><dt class="param">o</dt><dd class="cmt"><p>object with which to update <code>q</code></p></dd></dl></div>
    </li><li name="scala.AnyRef#wait" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="wait():Unit"></a>
      <a id="wait():Unit"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier">final </span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">wait</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@wait():Unit" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
                <span class="name">@throws</span><span class="args">(<span>
      
      <span class="defval" name="classOf[java.lang.InterruptedException]">...</span>
    </span>)</span>
              
        </dd></dl></div>
    </li><li name="scala.AnyRef#wait" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="wait(x$1:Long,x$2:Int):Unit"></a>
      <a id="wait(Long,Int):Unit"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier">final </span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">wait</span><span class="params">(<span name="arg0">arg0: <span class="extype" name="scala.Long">Long</span></span>, <span name="arg1">arg1: <span class="extype" name="scala.Int">Int</span></span>)</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@wait(x$1:Long,x$2:Int):Unit" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
                <span class="name">@throws</span><span class="args">(<span>
      
      <span class="defval" name="classOf[java.lang.InterruptedException]">...</span>
    </span>)</span>
              
        </dd></dl></div>
    </li><li name="scala.AnyRef#wait" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="wait(x$1:Long):Unit"></a>
      <a id="wait(Long):Unit"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier">final </span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">wait</span><span class="params">(<span name="arg0">arg0: <span class="extype" name="scala.Long">Long</span></span>)</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@wait(x$1:Long):Unit" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
                <span class="name">@throws</span><span class="args">(<span>
      
      <span class="defval" name="classOf[java.lang.InterruptedException]">...</span>
    </span>)</span>
              
        </dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#writeConcern" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="writeConcern:com.mongodb.WriteConcern"></a>
      <a id="writeConcern:mongodb.WriteConcern"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">writeConcern</span><span class="result">: <span class="extype" name="com.mongodb.WriteConcern">mongodb.WriteConcern</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@writeConcern:com.mongodb.WriteConcern" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">get the write concern for this database,
which is used for writes to any collection in this database.</p><div class="fullcomment"><div class="comment cmt"><p>get the write concern for this database,
which is used for writes to any collection in this database.
See the documentation for <span class="extype" name="com.mongodb.WriteConcern">com.mongodb.WriteConcern</span> for more info.
</p></div><dl class="attributes block"> <dt>See also</dt><dd><span class="cmt"><p>http://www.thebuzzmedia.com/mongodb-single-server-data-durability-guide/</p></span><span class="cmt"><p>WriteConcern</p></span></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#writeConcern_=" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="writeConcern_=(concern:com.mongodb.WriteConcern):Unit"></a>
      <a id="writeConcern_=(mongodb.WriteConcern):Unit"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span title="gt4s: writeConcern_$eq" class="name">writeConcern_=</span><span class="params">(<span name="concern">concern: <span class="extype" name="com.mongodb.WriteConcern">mongodb.WriteConcern</span></span>)</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@writeConcern_=(concern:com.mongodb.WriteConcern):Unit" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Set the write concern for this database.</p><div class="fullcomment"><div class="comment cmt"><p>Set the write concern for this database.
Will be used for writes to any collection in this database.
See the documentation for <span class="extype" name="com.mongodb.WriteConcern">com.mongodb.WriteConcern</span> for more info.
</p></div><dl class="paramcmts block"><dt class="param">concern</dt><dd class="cmt"><p>(WriteConcern) The write concern to use</p></dd></dl><dl class="attributes block"> <dt>See also</dt><dd><span class="cmt"><p>http://www.thebuzzmedia.com/mongodb-single-server-data-durability-guide/</p></span><span class="cmt"><p>WriteConcern</p></span></dd></dl></div>
    </li></ol>
            </div>

        

        <div id="values" class="values members">
              <h3>Deprecated Value Members</h3>
              <ol><li name="com.mongodb.casbah.MongoCollectionBase#aggregate" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="aggregate(pipeline:com.mongodb.casbah.commons.TypeImports.DBObject*):com.mongodb.casbah.AggregationOutput"></a>
      <a id="aggregate(commons.TypeImports.DBObject*):AggregationOutput"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name deprecated" title="Deprecated: (Since version 2.7) Use aggregate(List(DBObject) instead">aggregate</span><span class="params">(<span name="pipeline">pipeline: <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a>*</span>)</span><span class="result">: <a href="AggregationOutput.html" class="extype" name="com.mongodb.casbah.AggregationOutput">AggregationOutput</a></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@aggregate(pipeline:com.mongodb.casbah.commons.TypeImports.DBObject*):com.mongodb.casbah.AggregationOutput" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">performs an aggregation operation
</p><div class="fullcomment"><div class="comment cmt"><p>performs an aggregation operation
</p></div><dl class="paramcmts block"><dt class="param">pipeline</dt><dd class="cmt"><p>the aggregation pipeline</p></dd><dt>returns</dt><dd class="cmt"><p>The aggregation operation's result set</p></dd></dl><dl class="attributes block"> <dt>Annotations</dt><dd>
                <span class="name">@deprecated</span>
              
        </dd><dt>Deprecated</dt><dd class="cmt"><p><i>(Since version 2.7)</i> Use aggregate(List(DBObject) instead</p></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#find" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="find[A,B](ref:A,fields:B,numToSkip:Int,batchSize:Int)(implicitevidence$11:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitevidence$12:B=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):MongoCollectionBase.this.CursorType"></a>
      <a id="find[A,B](A,B,Int,Int)((A)⇒commons.TypeImports.DBObject,(B)⇒commons.TypeImports.DBObject):CursorType"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name deprecated" title="Deprecated: (Since version 2.7) Use find().skip().batchSize().">find</span><span class="tparams">[<span name="A">A</span>, <span name="B">B</span>]</span><span class="params">(<span name="ref">ref: <span class="extype" name="com.mongodb.casbah.MongoCollectionBase.find.A">A</span></span>, <span name="fields">fields: <span class="extype" name="com.mongodb.casbah.MongoCollectionBase.find.B">B</span></span>, <span name="numToSkip">numToSkip: <span class="extype" name="scala.Int">Int</span></span>, <span name="batchSize">batchSize: <span class="extype" name="scala.Int">Int</span></span>)</span><span class="params">(<span class="implicit">implicit </span><span name="arg0">arg0: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.find.A">A</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>, <span name="arg1">arg1: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.find.B">B</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>)</span><span class="result">: <a href="#CursorType" class="extmbr" name="com.mongodb.casbah.MongoCollectionBase.CursorType">CursorType</a></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@find[A,B](ref:A,fields:B,numToSkip:Int,batchSize:Int)(implicitevidence$11:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitevidence$12:B=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):MongoCollectionBase.this.CursorType" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Finds an object.</p><div class="fullcomment"><div class="comment cmt"><p>Finds an object.</p></div><dl class="paramcmts block"><dt class="param">ref</dt><dd class="cmt"><p>query used to search</p></dd><dt class="param">fields</dt><dd class="cmt"><p>the fields of matching objects to return</p></dd><dt class="param">numToSkip</dt><dd class="cmt"><p>will not return the first <tt>numToSkip</tt> matches</p></dd><dt class="param">batchSize</dt><dd class="cmt"><p>if positive, is the # of objects per batch sent back from the db.  All objects that match will
                 be returned.  if batchSize &lt; 0, its a hard limit, and only 1 batch will either batchSize or
                 the # that fit in a batch</p></dd><dt>returns</dt><dd class="cmt"><p>the objects, if found</p></dd></dl><dl class="attributes block"> <dt>Annotations</dt><dd>
                <span class="name">@deprecated</span>
              
        </dd><dt>Deprecated</dt><dd class="cmt"><p><i>(Since version 2.7)</i> Use <code>find().skip().batchSize()</code>.</p></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#slaveOk" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="slaveOk():Unit"></a>
      <a id="slaveOk():Unit"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name deprecated" title="Deprecated: (Since version 2.3.0) Replaced with ReadPreference.SECONDARY">slaveOk</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@slaveOk():Unit" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Sets queries to be OK to run on slave nodes.</p><div class="fullcomment"><div class="comment cmt"><p>Sets queries to be OK to run on slave nodes.
</p></div><dl class="attributes block"> <dt>Annotations</dt><dd>
                <span class="name">@deprecated</span>
              
                <span class="name">@SuppressWarnings</span><span class="args">()</span>
              
        </dd><dt>Deprecated</dt><dd class="cmt"><p><i>(Since version 2.3.0)</i> Replaced with <code>ReadPreference.SECONDARY</code></p></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoCollectionBase#updateMulti" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="updateMulti[A,B](q:A,o:B)(implicitevidence$61:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitevidence$62:B=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):com.mongodb.casbah.TypeImports.WriteResult"></a>
      <a id="updateMulti[A,B](A,B)((A)⇒commons.TypeImports.DBObject,(B)⇒commons.TypeImports.DBObject):TypeImports.WriteResult"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name deprecated" title="Deprecated: (Since version 2.3.0) In the face of default arguments this is a bit silly. Please use update(multi=True).">updateMulti</span><span class="tparams">[<span name="A">A</span>, <span name="B">B</span>]</span><span class="params">(<span name="q">q: <span class="extype" name="com.mongodb.casbah.MongoCollectionBase.updateMulti.A">A</span></span>, <span name="o">o: <span class="extype" name="com.mongodb.casbah.MongoCollectionBase.updateMulti.B">B</span></span>)</span><span class="params">(<span class="implicit">implicit </span><span name="arg0">arg0: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.updateMulti.A">A</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>, <span name="arg1">arg1: (<span class="extype" name="com.mongodb.casbah.MongoCollectionBase.updateMulti.B">B</span>) ⇒ <a href="commons/TypeImports$.html#DBObject=com.mongodb.DBObject" class="extmbr" name="com.mongodb.casbah.commons.TypeImports.DBObject">commons.TypeImports.DBObject</a></span>)</span><span class="result">: <a href="TypeImports$.html#WriteResult=com.mongodb.WriteResult" class="extmbr" name="com.mongodb.casbah.TypeImports.WriteResult">TypeImports.WriteResult</a></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoCollectionBase@updateMulti[A,B](q:A,o:B)(implicitevidence$61:A=&gt;com.mongodb.casbah.commons.TypeImports.DBObject,implicitevidence$62:B=&gt;com.mongodb.casbah.commons.TypeImports.DBObject):com.mongodb.casbah.TypeImports.WriteResult" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Perform a multi update</p><div class="fullcomment"><div class="comment cmt"><p>Perform a multi update</p></div><dl class="paramcmts block"><dt class="param">q</dt><dd class="cmt"><p>search query for old object to update</p></dd><dt class="param">o</dt><dd class="cmt"><p>object with which to update <tt>q</tt></p></dd></dl><dl class="attributes block"> <dt>Annotations</dt><dd>
                <span class="name">@deprecated</span>
              
        </dd><dt>Deprecated</dt><dd class="cmt"><p><i>(Since version 2.3.0)</i> In the face of default arguments this is a bit silly. Please use <code>update(multi=True)</code>.</p></dd></dl></div>
    </li></ol>
            </div>
        </div>

        <div id="inheritedMembers">
        <div class="parent" name="com.mongodb.casbah.commons.Logging">
              <h3>Inherited from <a href="commons/Logging.html" class="extype" name="com.mongodb.casbah.commons.Logging">Logging</a></h3>
            </div><div class="parent" name="scala.AnyRef">
              <h3>Inherited from <span class="extype" name="scala.AnyRef">AnyRef</span></h3>
            </div><div class="parent" name="scala.Any">
              <h3>Inherited from <span class="extype" name="scala.Any">Any</span></h3>
            </div>
        
        </div>

        <div id="groupedMembers">
        <div class="group" name="Ungrouped">
              <h3>Ungrouped</h3>
              
            </div>
        </div>

      </div>

      <div id="tooltip"></div>

      <div id="footer">  </div>


    </body>
      </html>
